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