comparison .svn/pristine/92/92b4f5732f182d4998155cf0aa9e5c1d67828523.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
comparison
equal deleted inserted replaced
1297:0a574315af3e 1298:4f746d8966dd
1 <div class="contextual">
2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
4 <% end %>
5 <% if User.current.allowed_to?(:close_project, @project) %>
6 <% if @project.active? %>
7 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
8 <% else %>
9 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
10 <% end %>
11 <% end %>
12 </div>
13
14 <h2><%=l(:label_overview)%></h2>
15
16 <% unless @project.active? %>
17 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
18 <% end %>
19
20 <div class="splitcontentleft">
21 <% if @project.description.present? %>
22 <div class="wiki">
23 <%= textilizable @project.description %>
24 </div>
25 <% end %>
26 <ul>
27 <% unless @project.homepage.blank? %>
28 <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
29 <% end %>
30 <% if @subprojects.any? %>
31 <li><%=l(:label_subproject_plural)%>:
32 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
33 <% end %>
34 <% @project.visible_custom_field_values.each do |custom_value| %>
35 <% if !custom_value.value.blank? %>
36 <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
37 <% end %>
38 <% end %>
39 </ul>
40
41 <% if User.current.allowed_to?(:view_issues, @project) %>
42 <div class="issues box">
43 <h3><%=l(:label_issue_tracking)%></h3>
44 <ul>
45 <% for tracker in @trackers %>
46 <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
47 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
48 :total => @total_issues_by_tracker[tracker].to_i) %>
49 </li>
50 <% end %>
51 </ul>
52 <p>
53 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
54 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
55 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
56 <% end %>
57 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
58 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
59 <% end %>
60 </p>
61 </div>
62 <% end %>
63 <%= call_hook(:view_projects_show_left, :project => @project) %>
64 </div>
65
66 <div class="splitcontentright">
67 <%= render :partial => 'members_box' %>
68
69 <% if @news.any? && authorize_for('news', 'index') %>
70 <div class="news box">
71 <h3><%=l(:label_news_latest)%></h3>
72 <%= render :partial => 'news/news', :collection => @news %>
73 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
74 </div>
75 <% end %>
76 <%= call_hook(:view_projects_show_right, :project => @project) %>
77 </div>
78
79 <% content_for :sidebar do %>
80 <% if @total_hours.present? %>
81 <h3><%= l(:label_spent_time) %></h3>
82 <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
83 <p>
84 <% if User.current.allowed_to?(:log_time, @project) %>
85 <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
86 <% end %>
87 <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
88 <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
89 <% end %>
90 <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
91 <% end %>
92
93 <% content_for :header_tags do %>
94 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
95 <% end %>
96
97 <% html_title(l(:label_overview)) -%>