|
|
|
@ -19,49 +19,46 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
|
|
|
|
|
++#%> |
|
|
|
|
|
|
|
|
|
<% content_for :action_menu_specific do %> |
|
|
|
|
<%= |
|
|
|
|
context_links = [] |
|
|
|
|
if User.current.allowed_to?(:add_subprojects, project) |
|
|
|
|
context_links << link_to(l(:label_subproject_new), |
|
|
|
|
{ :controller => 'projects', |
|
|
|
|
:action => 'new', |
|
|
|
|
:parent_id => project }, |
|
|
|
|
:class => 'icon icon-add') |
|
|
|
|
end |
|
|
|
|
if User.current.allowed_to?(:edit_project, project) |
|
|
|
|
context_links << link_to(l(:label_personalize_page), |
|
|
|
|
{ :action => 'page_layout' }, |
|
|
|
|
:class => 'icon icon-edit', |
|
|
|
|
:accesskey => accesskey(:edit)) |
|
|
|
|
end |
|
|
|
|
context_links.join(" ").html_safe |
|
|
|
|
%> |
|
|
|
|
<% 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> |
|
|
|
|
|
|
|
|
|
<%= render :partial => 'layouts/action_menu_specific' %> |
|
|
|
|
<% 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 id="invisible-grid"> |
|
|
|
|
<div class="grid-block medium-up-1"> |
|
|
|
|
<% top_fields.each do |f| %> |
|
|
|
|
<%= rendered_field f %> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<div class="grid-block medium-up-2"> |
|
|
|
|
<% middle_fields.each do |f| %> |
|
|
|
|
<%= rendered_field f %> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<% content_for :sidebar do %> |
|
|
|
|
<% if total_hours.present? %> |
|
|
|
@ -78,11 +75,3 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
<% end %> |
|
|
|
|
<%= call_hook(:view_projects_show_sidebar_bottom, :project => project) %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<% 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)) -%> |
|
|
|
|