|
@@
-1,87
+1,87
|
|
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), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
|
|
3
|
<%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
|
|
4
|
<% end %>
|
|
4
|
<% end %>
|
|
5
|
<% if User.current.allowed_to?(:close_project, @project) %>
|
|
5
|
<% if User.current.allowed_to?(:close_project, @project) %>
|
|
6
|
<% if @project.active? %>
|
|
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' %>
|
|
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 %>
|
|
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' %>
|
|
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 %>
|
|
10
|
<% end %>
|
|
11
|
<% end %>
|
|
11
|
<% end %>
|
|
12
|
</div>
|
|
12
|
</div>
|
|
13
|
|
|
13
|
|
|
14
|
<h2><%=l(:label_overview)%></h2>
|
|
14
|
<h2><%=l(:label_overview)%></h2>
|
|
15
|
|
|
15
|
|
|
16
|
<% unless @project.active? %>
|
|
16
|
<% unless @project.active? %>
|
|
17
|
<p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
|
|
17
|
<p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
|
|
18
|
<% end %>
|
|
18
|
<% end %>
|
|
19
|
|
|
19
|
|
|
20
|
<div class="splitcontentleft">
|
|
20
|
<div class="splitcontentleft">
|
|
21
|
<% if @project.description.present? %>
|
|
21
|
<% if @project.description.present? %>
|
|
22
|
<div class="wiki">
|
|
22
|
<div class="wiki">
|
|
23
|
<%= textilizable @project.description %>
|
|
23
|
<%= textilizable @project.description %>
|
|
24
|
</div>
|
|
24
|
</div>
|
|
25
|
<% end %>
|
|
25
|
<% end %>
|
|
26
|
<ul>
|
|
26
|
<ul>
|
|
27
|
<% unless @project.homepage.blank? %>
|
|
27
|
<% unless @project.homepage.blank? %>
|
|
28
|
<li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
|
|
28
|
<li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to h(@project.homepage), @project.homepage %></li>
|
|
29
|
<% end %>
|
|
29
|
<% end %>
|
|
30
|
<% if @subprojects.any? %>
|
|
30
|
<% if @subprojects.any? %>
|
|
31
|
<li><%=l(:label_subproject_plural)%>:
|
|
31
|
<li><span class="label"><%=l(:label_subproject_plural)%>:</span>
|
|
32
|
<%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
|
|
32
|
<%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
|
|
33
|
<% end %>
|
|
33
|
<% end %>
|
|
34
|
<% @project.visible_custom_field_values.each do |custom_value| %>
|
|
34
|
<% @project.visible_custom_field_values.each do |custom_value| %>
|
|
35
|
<% if !custom_value.value.blank? %>
|
|
35
|
<% if !custom_value.value.blank? %>
|
|
36
|
<li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
|
|
36
|
<li><span class="label"><%=h custom_value.custom_field.name %>:</span> <%=h show_value(custom_value) %></li>
|
|
37
|
<% end %>
|
|
37
|
<% end %>
|
|
38
|
<% end %>
|
|
38
|
<% end %>
|
|
39
|
</ul>
|
|
39
|
</ul>
|
|
40
|
|
|
40
|
|
|
41
|
<% if User.current.allowed_to?(:view_issues, @project) %>
|
|
41
|
<% if User.current.allowed_to?(:view_issues, @project) %>
|
|
42
|
<div class="issues box">
|
|
42
|
<div class="issues box">
|
|
43
|
<h3><%=l(:label_issue_tracking)%></h3>
|
|
43
|
<h3><%=l(:label_issue_tracking)%></h3>
|
|
44
|
<ul>
|
|
44
|
<ul>
|
|
45
|
<% for tracker in @trackers %>
|
|
45
|
<% for tracker in @trackers %>
|
|
46
|
<li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
|
|
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,
|
|
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) %>
|
|
48
|
:total => @total_issues_by_tracker[tracker].to_i) %>
|
|
49
|
</li>
|
|
49
|
</li>
|
|
50
|
<% end %>
|
|
50
|
<% end %>
|
|
51
|
</ul>
|
|
51
|
</ul>
|
|
52
|
<p>
|
|
52
|
<p>
|
|
53
|
<%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
|
|
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) %>
|
|
54
|
<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
|
55
|
| <%= link_to l(:label_calendar), project_calendar_path(@project) %>
|
|
55
|
| <%= link_to l(:label_calendar), project_calendar_path(@project) %>
|
|
56
|
<% end %>
|
|
56
|
<% end %>
|
|
57
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
|
57
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
|
58
|
| <%= link_to l(:label_gantt), project_gantt_path(@project) %>
|
|
58
|
| <%= link_to l(:label_gantt), project_gantt_path(@project) %>
|
|
59
|
<% end %>
|
|
59
|
<% end %>
|
|
60
|
</p>
|
|
60
|
</p>
|
|
61
|
</div>
|
|
61
|
</div>
|
|
62
|
<% end %>
|
|
62
|
<% end %>
|
|
63
|
<%= call_hook(:view_projects_show_left, :project => @project) %>
|
|
63
|
<%= call_hook(:view_projects_show_left, :project => @project) %>
|
|
64
|
</div>
|
|
64
|
</div>
|
|
65
|
|
|
65
|
|
|
66
|
<div class="splitcontentright">
|
|
66
|
<div class="splitcontentright">
|
|
67
|
<%= render :partial => 'members_box' %>
|
|
67
|
<%= render :partial => 'members_box' %>
|
|
68
|
|
|
68
|
|
|
69
|
<% if @news.any? && authorize_for('news', 'index') %>
|
|
69
|
<% if @news.any? && authorize_for('news', 'index') %>
|
|
70
|
<div class="news box">
|
|
70
|
<div class="news box">
|
|
71
|
<h3><%=l(:label_news_latest)%></h3>
|
|
71
|
<h3><%=l(:label_news_latest)%></h3>
|
|
72
|
<%= render :partial => 'news/news', :collection => @news %>
|
|
72
|
<%= render :partial => 'news/news', :collection => @news %>
|
|
73
|
<p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
|
|
73
|
<p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
|
|
74
|
</div>
|
|
74
|
</div>
|
|
75
|
<% end %>
|
|
75
|
<% end %>
|
|
76
|
<%= call_hook(:view_projects_show_right, :project => @project) %>
|
|
76
|
<%= call_hook(:view_projects_show_right, :project => @project) %>
|
|
77
|
</div>
|
|
77
|
</div>
|
|
78
|
|
|
78
|
|
|
79
|
<% content_for :sidebar do %>
|
|
79
|
<% content_for :sidebar do %>
|
|
80
|
<%= render :partial => 'projects/sidebar' %>
|
|
80
|
<%= render :partial => 'projects/sidebar' %>
|
|
81
|
<% end %>
|
|
81
|
<% end %>
|
|
82
|
|
|
82
|
|
|
83
|
<% content_for :header_tags do %>
|
|
83
|
<% content_for :header_tags do %>
|
|
84
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
|
84
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
|
85
|
<% end %>
|
|
85
|
<% end %>
|
|
86
|
|
|
86
|
|
|
87
|
<% html_title(l(:label_overview)) -%>
|
|
87
|
<% html_title(l(:label_overview)) -%>
|