luis@465
|
1 <div class="contextual">
|
luis@465
|
2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
|
Chris@1486
|
3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
|
luis@465
|
4 <% end %>
|
luis@546
|
5
|
Chris@1232
|
6 <% if User.current.allowed_to?(:close_project, @project) %>
|
Chris@1232
|
7 <% if @project.active? %>
|
Chris@1232
|
8 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
|
Chris@1232
|
9 <% else %>
|
Chris@1232
|
10 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
|
Chris@1232
|
11 <% end %>
|
chris@1233
|
12 <% end %>
|
Chris@1232
|
13
|
luis@550
|
14 <% if @project.module_enabled? :redmine_bibliography %>
|
luis@626
|
15 <% if User.current.allowed_to?(:add_publication, @project) %>
|
luis@626
|
16 <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
|
luis@626
|
17 <% end %>
|
luis@550
|
18 <% end %>
|
luis@465
|
19 </div>
|
luis@465
|
20
|
chris@680
|
21 <% if @project.has_welcome_page %>
|
chris@680
|
22 <% page = @project.wiki.find_page("Overview") %>
|
chris@680
|
23 <% end %>
|
chris@680
|
24
|
chris@680
|
25 <% if page %>
|
chris@680
|
26
|
chris@680
|
27 <% if @project.module_enabled? :wiki %>
|
chris@680
|
28 <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
|
chris@680
|
29 <div class="contextual">
|
chris@680
|
30 <%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
|
chris@680
|
31 </div>
|
chris@680
|
32 <% end %>
|
chris@680
|
33 <% end %>
|
chris@680
|
34
|
chris@680
|
35 <div class="contextual" style="clear: right">
|
chris@680
|
36 <ul>
|
Chris@1232
|
37 <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li><% end %>
|
chris@680
|
38 <% if @subprojects.any? %>
|
chris@680
|
39 <li><%=l(:label_subproject_plural)%>:
|
Chris@1486
|
40 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
|
chris@680
|
41 <% end %>
|
chris@680
|
42 </ul>
|
chris@680
|
43 </div>
|
chris@680
|
44
|
chris@680
|
45 <%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
|
chris@680
|
46
|
chris@680
|
47 <% else %>
|
chris@680
|
48
|
luis@465
|
49 <h2><%=l(:label_overview)%></h2>
|
luis@465
|
50
|
Chris@1232
|
51 <% unless @project.active? %>
|
Chris@1232
|
52 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
|
Chris@1232
|
53 <% end %>
|
Chris@1232
|
54
|
luis@465
|
55 <div class="splitcontentleft">
|
Chris@1232
|
56 <% if @project.description.present? %>
|
luis@465
|
57 <div class="wiki">
|
luis@465
|
58 <%= textilizable @project.description %>
|
luis@465
|
59 </div>
|
Chris@1232
|
60 <% end %>
|
Chris@1447
|
61 <div class="overviewfields">
|
Chris@1447
|
62 <% unless @project.homepage.blank? %><h4><%=l(:field_homepage)%>:</h4><ul><li><%= link_to h(@project.homepage), @project.homepage %></li></ul><% end %>
|
luis@465
|
63 <% if @subprojects.any? %>
|
Chris@1447
|
64 <h4><%=l(:label_subproject_plural)%>:</h4>
|
Chris@1447
|
65 <ul>
|
Chris@1447
|
66 <li><%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join("</li><li>").html_safe %></li>
|
Chris@1447
|
67 </ul>
|
luis@465
|
68 <% end %>
|
luis@465
|
69 <% @project.visible_custom_field_values.each do |custom_value| %>
|
luis@465
|
70 <% if !custom_value.value.blank? %>
|
Chris@1447
|
71 <h4><%= custom_value.custom_field.name%>:</h4><ul><li><%=h show_value(custom_value) %></li></ul>
|
luis@465
|
72 <% end %>
|
luis@465
|
73 <% end %>
|
Chris@1447
|
74 </div>
|
Chris@1232
|
75 <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
|
luis@465
|
76 <div class="issues box">
|
luis@465
|
77 <h3><%=l(:label_issue_tracking)%></h3>
|
luis@465
|
78 <ul>
|
luis@465
|
79 <% for tracker in @trackers %>
|
Chris@1486
|
80 <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
|
Chris@1232
|
81 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
|
Chris@1232
|
82 :total => @total_issues_by_tracker[tracker].to_i) %>
|
Chris@1232
|
83 </li>
|
luis@465
|
84 <% end %>
|
luis@465
|
85 </ul>
|
luis@465
|
86 <p>
|
Chris@1486
|
87 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
|
luis@465
|
88 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
Chris@1486
|
89 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
|
Chris@1486
|
90 <% end %>
|
Chris@1486
|
91 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
Chris@1486
|
92 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
|
Chris@1486
|
93 <% end %>
|
Chris@1486
|
94 </p>
|
luis@465
|
95 </div>
|
luis@465
|
96 <% end %>
|
luis@465
|
97 <%= call_hook(:view_projects_show_left, :project => @project) %>
|
luis@465
|
98 </div>
|
luis@465
|
99
|
luis@465
|
100 <div class="splitcontentright">
|
luis@465
|
101
|
luis@465
|
102 <%= render :partial => 'bibliography_box' %>
|
luis@465
|
103
|
luis@465
|
104 <%= render :partial => 'members_box' %>
|
luis@465
|
105
|
luis@465
|
106 <% if @news.any? && authorize_for('news', 'index') %>
|
luis@465
|
107 <div class="news box">
|
luis@465
|
108 <h3><%=l(:label_news_latest)%></h3>
|
luis@465
|
109 <%= render :partial => 'news/news', :collection => @news %>
|
Chris@1486
|
110 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
|
luis@465
|
111 </div>
|
luis@465
|
112 <% end %>
|
Chris@1232
|
113
|
Chris@1232
|
114 <%= render :partial => 'activities/recent' %>
|
Chris@1232
|
115
|
luis@465
|
116 <%= call_hook(:view_projects_show_right, :project => @project) %>
|
luis@465
|
117 </div>
|
luis@465
|
118
|
luis@465
|
119 <% content_for :sidebar do %>
|
chris@810
|
120 <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
|
Chris@1232
|
121 <% if @total_hours.present? && User.current.allowed_to?(:view_time_entries, @project) %>
|
luis@465
|
122 <h3><%= l(:label_spent_time) %></h3>
|
luis@465
|
123 <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
|
Chris@1232
|
124 <p>
|
Chris@1232
|
125 <% if User.current.allowed_to?(:log_time, @project) %>
|
Chris@1232
|
126 <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
|
Chris@1232
|
127 <% end %>
|
Chris@1232
|
128 <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
|
Chris@1232
|
129 <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
|
luis@465
|
130 <% end %>
|
luis@465
|
131 <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
luis@465
|
132 <% end %>
|
luis@465
|
133
|
chris@680
|
134 <% end %>
|
chris@680
|
135
|
luis@465
|
136 <% content_for :header_tags do %>
|
luis@465
|
137 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
luis@465
|
138 <% end %>
|
luis@465
|
139
|
chris@1511
|
140 <% html_title('') -%>
|