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