2009-12-24 19:18:15 +03:00
|
|
|
<div class="contextual">
|
|
|
|
<% if User.current.allowed_to?(:add_subprojects, @project) %>
|
2010-09-17 08:22:46 +04:00
|
|
|
<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
|
2009-12-24 19:18:15 +03:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_overview)%></h2>
|
|
|
|
|
|
|
|
<div class="splitcontentleft">
|
2010-03-27 15:54:13 +03:00
|
|
|
<div class="wiki">
|
|
|
|
<%= textilizable @project.description %>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
<ul>
|
2010-02-28 12:10:33 +03:00
|
|
|
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
|
2009-01-24 14:31:15 +03:00
|
|
|
<% if @subprojects.any? %>
|
|
|
|
<li><%=l(:label_subproject_plural)%>:
|
|
|
|
<%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
|
|
|
|
<% end %>
|
2010-11-07 17:15:01 +03:00
|
|
|
<% @project.visible_custom_field_values.each do |custom_value| %>
|
2009-09-20 13:56:06 +04:00
|
|
|
<% if !custom_value.value.blank? %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
2007-09-14 15:34:08 +04:00
|
|
|
<% if User.current.allowed_to?(:view_issues, @project) %>
|
2009-12-17 21:52:28 +03:00
|
|
|
<div class="issues box">
|
|
|
|
<h3><%=l(:label_issue_tracking)%></h3>
|
2007-03-12 20:59:02 +03:00
|
|
|
<ul>
|
|
|
|
<% for tracker in @trackers %>
|
2007-11-05 21:38:42 +03:00
|
|
|
<li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project,
|
2007-03-12 20:59:02 +03:00
|
|
|
:set_filter => 1,
|
|
|
|
"tracker_id" => tracker.id %>:
|
2009-02-21 14:04:50 +03: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>
|
|
|
|
<%= 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) %>
|
2010-05-03 20:02:37 +04:00
|
|
|
| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
|
2009-12-18 23:15:49 +03:00
|
|
|
<% end %>
|
|
|
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
2010-04-28 19:54:46 +04:00
|
|
|
| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
|
2009-12-18 23:15:49 +03:00
|
|
|
<% 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' %>
|
2007-09-22 17:17:49 +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">
|
2007-03-12 20:59:02 +03: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>
|
2007-03-12 20:59:02 +03: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>
|
2010-10-06 22:23:45 +04:00
|
|
|
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
|
2010-10-05 20:07:17 +04:00
|
|
|
<%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @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)) -%>
|