2009-12-24 19:18:15 +03:00
|
|
|
<div class="contextual">
|
2011-09-14 16:13:44 +04:00
|
|
|
<% if User.current.allowed_to?(:add_subprojects, @project) %>
|
|
|
|
<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
|
|
|
|
<% end %>
|
2012-06-25 21:49:35 +04:00
|
|
|
<% if User.current.allowed_to?(:close_project, @project) %>
|
|
|
|
<% if @project.active? %>
|
|
|
|
<%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2009-12-24 19:18:15 +03:00
|
|
|
</div>
|
|
|
|
|
2011-08-02 16:39:24 +04:00
|
|
|
<h2><%=l(:label_overview)%></h2>
|
2011-09-14 16:12:09 +04:00
|
|
|
|
2012-06-25 21:49:35 +04:00
|
|
|
<% unless @project.active? %>
|
|
|
|
<p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
|
|
|
|
<% end %>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div class="splitcontentleft">
|
2012-06-25 21:49:35 +04:00
|
|
|
<% if @project.description.present? %>
|
2011-09-14 16:13:44 +04:00
|
|
|
<div class="wiki">
|
|
|
|
<%= textilizable @project.description %>
|
|
|
|
</div>
|
2012-06-25 21:49:35 +04:00
|
|
|
<% end %>
|
2011-09-14 16:13:44 +04:00
|
|
|
<ul>
|
2012-02-24 03:08:00 +04:00
|
|
|
<% unless @project.homepage.blank? %>
|
2012-04-25 21:17:49 +04:00
|
|
|
<li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
|
2012-02-24 03:08:00 +04:00
|
|
|
<% end %>
|
2009-01-24 14:31:15 +03:00
|
|
|
<% if @subprojects.any? %>
|
2012-02-24 03:08:00 +04:00
|
|
|
<li><%=l(:label_subproject_plural)%>:
|
2011-10-06 19:02:56 +04:00
|
|
|
<%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
|
2011-09-14 16:13:44 +04:00
|
|
|
<% end %>
|
|
|
|
<% @project.visible_custom_field_values.each do |custom_value| %>
|
|
|
|
<% if !custom_value.value.blank? %>
|
|
|
|
<li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
|
|
|
|
<% end %>
|
2009-01-24 14:31:15 +03:00
|
|
|
<% end %>
|
2011-09-14 16:13:44 +04:00
|
|
|
</ul>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-09-14 15:34:08 +04:00
|
|
|
<% if User.current.allowed_to?(:view_issues, @project) %>
|
2011-08-02 16:39:24 +04:00
|
|
|
<div class="issues box">
|
2009-12-17 21:52:28 +03:00
|
|
|
<h3><%=l(:label_issue_tracking)%></h3>
|
2007-03-12 20:59:02 +03:00
|
|
|
<ul>
|
2011-08-02 16:39:24 +04:00
|
|
|
<% for tracker in @trackers %>
|
|
|
|
<li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
|
|
|
|
:set_filter => 1,
|
2007-03-12 20:59:02 +03:00
|
|
|
"tracker_id" => tracker.id %>:
|
2011-09-14 16:13:44 +04:00
|
|
|
<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
|
|
|
|
:total => @total_issues_by_tracker[tracker].to_i) %>
|
|
|
|
</li>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
2009-12-18 23:15:49 +03:00
|
|
|
<p>
|
2011-09-14 16:13:44 +04:00
|
|
|
<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
|
|
|
|
<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
|
|
|
| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
|
|
|
|
<% end %>
|
|
|
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
|
|
|
| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
2007-09-14 15:34:08 +04:00
|
|
|
<% end %>
|
2009-04-25 01:25:03 +04:00
|
|
|
<%= call_hook(:view_projects_show_left, :project => @project) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
2010-08-20 02:24:37 +04:00
|
|
|
<%= render :partial => 'members_box' %>
|
2011-08-02 16:39:24 +04:00
|
|
|
|
2007-11-06 01:22:51 +03:00
|
|
|
<% if @news.any? && authorize_for('news', 'index') %>
|
2009-12-17 21:52:28 +03:00
|
|
|
<div class="news box">
|
2011-08-02 16:39:24 +04:00
|
|
|
<h3><%=l(:label_news_latest)%></h3>
|
2006-12-17 11:10:18 +03:00
|
|
|
<%= render :partial => 'news/news', :collection => @news %>
|
2007-11-06 01:22:51 +03:00
|
|
|
<p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
|
2011-08-02 16:39:24 +04:00
|
|
|
</div>
|
2007-04-20 14:26:57 +04:00
|
|
|
<% end %>
|
2009-04-25 01:25:03 +04:00
|
|
|
<%= call_hook(:view_projects_show_right, :project => @project) %>
|
2007-08-16 15:01:00 +04:00
|
|
|
</div>
|
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<% content_for :sidebar do %>
|
2011-03-16 20:29:30 +03:00
|
|
|
<% if @total_hours.present? %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<h3><%= l(:label_spent_time) %></h3>
|
2009-02-21 14:04:50 +03:00
|
|
|
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
|
2012-06-26 21:05:02 +04:00
|
|
|
<p>
|
|
|
|
<% if User.current.allowed_to?(:log_time, @project) %>
|
|
|
|
<%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
|
|
|
|
<% end %>
|
|
|
|
<%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2009-09-12 04:08:38 +04:00
|
|
|
<%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
|
2007-08-16 15:01:00 +04:00
|
|
|
<% content_for :header_tags do %>
|
2010-08-27 18:05:54 +04:00
|
|
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
2007-08-16 15:01:00 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_overview)) -%>
|