Add subproject widget.

pull/6827/head
Felix Schäfer 13 years ago
parent d2ad629564
commit c3928904fa
  1. 3
      app/controllers/my_projects_overviews_controller.rb
  2. 7
      app/views/my_projects_overviews/blocks/_subprojects.html.erb

@ -32,7 +32,8 @@ class MyProjectsOverviewsController < ApplicationController
'members' => :label_member_plural,
'issuetracking' => :label_issue_tracking,
'projectdetails' => :label_project_details,
'projectdescription' => :label_project_description
'projectdescription' => :label_project_description,
'subprojects' => :label_subproject_plural
}
verify :xhr => true,

@ -0,0 +1,7 @@
<h2 class="page-layout-only"><%=l(:label_subproject_plural)%></h2>
<h3><%=l(:label_subproject_plural)%></h3>
<% if @subprojects.any? %>
<div class="subprojects overview">
<p><%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></p>
</div>
<% end %>
Loading…
Cancel
Save