##// END OF EJS Templates
Added two new plugin hooks to the Project Overview page...
Eric Davis -
r2594:1be0b8f0cbc8
parent child
Show More
@@ -1,79 +1,81
1 1 <h2><%=l(:label_overview)%></h2>
2 2
3 3 <div class="splitcontentleft">
4 4 <%= textilizable @project.description %>
5 5 <ul>
6 6 <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to(h(@project.homepage), @project.homepage) %></li><% end %>
7 7 <% if @subprojects.any? %>
8 8 <li><%=l(:label_subproject_plural)%>:
9 9 <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
10 10 <% end %>
11 11 <% @project.custom_values.each do |custom_value| %>
12 12 <% if !custom_value.value.empty? %>
13 13 <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
14 14 <% end %>
15 15 <% end %>
16 16 </ul>
17 17
18 18 <% if User.current.allowed_to?(:view_issues, @project) %>
19 19 <div class="box">
20 20 <h3 class="icon22 icon22-tracker"><%=l(:label_issue_tracking)%></h3>
21 21 <ul>
22 22 <% for tracker in @trackers %>
23 23 <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project,
24 24 :set_filter => 1,
25 25 "tracker_id" => tracker.id %>:
26 26 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
27 27 :total => @total_issues_by_tracker[tracker].to_i) %>
28 28 </li>
29 29 <% end %>
30 30 </ul>
31 31 <p><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %></p>
32 32 </div>
33 33 <% end %>
34 <%= call_hook(:view_projects_show_left, :project => @project) %>
34 35 </div>
35 36
36 37 <div class="splitcontentright">
37 38 <% if @members_by_role.any? %>
38 39 <div class="box">
39 40 <h3 class="icon22 icon22-users"><%=l(:label_member_plural)%></h3>
40 41 <p><% @members_by_role.keys.sort.each do |role| %>
41 42 <%= role.name %>:
42 43 <%= @members_by_role[role].collect(&:user).sort.collect{|u| link_to_user u}.join(", ") %>
43 44 <br />
44 45 <% end %></p>
45 46 </div>
46 47 <% end %>
47 48
48 49 <% if @news.any? && authorize_for('news', 'index') %>
49 50 <div class="box">
50 51 <h3><%=l(:label_news_latest)%></h3>
51 52 <%= render :partial => 'news/news', :collection => @news %>
52 53 <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
53 54 </div>
54 55 <% end %>
56 <%= call_hook(:view_projects_show_right, :project => @project) %>
55 57 </div>
56 58
57 59 <% content_for :sidebar do %>
58 60 <% planning_links = []
59 61 planning_links << link_to_if_authorized(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project)
60 62 planning_links << link_to_if_authorized(l(:label_gantt), :controller => 'issues', :action => 'gantt', :project_id => @project)
61 63 planning_links.compact!
62 64 unless planning_links.empty? %>
63 65 <h3><%= l(:label_planning) %></h3>
64 66 <p><%= planning_links.join(' | ') %></p>
65 67 <% end %>
66 68
67 69 <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
68 70 <h3><%= l(:label_spent_time) %></h3>
69 71 <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
70 72 <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |
71 73 <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
72 74 <% end %>
73 75 <% end %>
74 76
75 77 <% content_for :header_tags do %>
76 78 <%= auto_discovery_link_tag(:atom, {:action => 'activity', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
77 79 <% end %>
78 80
79 81 <% html_title(l(:label_overview)) -%>
General Comments 0
You need to be logged in to leave comments. Login now