kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.3 KiB
84 lines
3.3 KiB
<%#-- copyright
|
|
OpenProject My Project Page Plugin
|
|
|
|
Copyright (C) 2011-2014 the OpenProject Foundation (OPF)
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
See doc/COPYRIGHT.md for more details.
|
|
|
|
++#%>
|
|
|
|
<% content_for :header_tags do %>
|
|
<%= javascript_include_tag "my_project_page/my_project_page" %>
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
|
<%= stylesheet_link_tag "my_project_page/my_projects_overview", :media => 'all' %>
|
|
<% end %>
|
|
|
|
<% html_title(l(:label_overview)) -%>
|
|
|
|
<h2><%=l(:label_overview)%></h2>
|
|
|
|
<% content_for :toolbar do %>
|
|
<% if User.current.allowed_to?(:add_subprojects, project) %>
|
|
<li class="toolbar-item">
|
|
<%= link_to new_project_path(parent_id: project), class: 'button -highlight' do %>
|
|
<i class="icon-add"></i> <%= l(:label_subproject_new) %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% if User.current.allowed_to?(:edit_project, project) %>
|
|
<li class="toolbar-item">
|
|
<%= link_to my_projects_overview_path(project), class: 'button', accesskey: accesskey(:edit) do %>
|
|
<i class="icon-edit"></i> <%= l(:label_personalize_page) %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% end %>
|
|
<%= render :partial => 'layouts/toolbar' %>
|
|
|
|
<% ['top', 'left', 'right'].each do |position| %>
|
|
<div id="list-<%= position %>" class="splitcontent<%= position %>">
|
|
<% blocks[position].each do |b| %>
|
|
<div class="mypage-box" id='<%=b.respond_to?(:to_ary) ? "widget_teaser_#{b[0]}" : "widget_#{b}" %>'>
|
|
<div class="wiki">
|
|
<% if MyProjectsOverviewsController.available_blocks.keys.include? b %>
|
|
<%= render :partial => "my_projects_overviews/blocks/#{b}" %>
|
|
<% elsif b.respond_to? :to_ary %>
|
|
<%= render :partial => "textilizable",
|
|
:locals => { :project => project,
|
|
:user => user,
|
|
:block_title => b[1],
|
|
:textile => b.last } %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end if blocks[position] %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% content_for :sidebar do %>
|
|
<% if total_hours.present? %>
|
|
<h3><%= l(:label_spent_time) %></h3>
|
|
<p><span class="icon icon-time"><%= l_hours(total_hours) %></span></p>
|
|
<p>
|
|
<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => project}) %> |
|
|
|
|
<%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => project}) %>
|
|
<% if authorize_for('timelog', 'new') %>
|
|
| <%= link_to l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => project} %>
|
|
<% end %>
|
|
</p>
|
|
<% end %>
|
|
<%= call_hook(:view_projects_show_sidebar_bottom, :project => project) %>
|
|
<% end %>
|
|
|