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