2009-12-24 19:18:15 +03:00
|
|
|
<div class="contextual">
|
|
|
|
<% if User.current.allowed_to?(:add_subprojects, @project) %>
|
|
|
|
<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'add', :parent_id => @project}, :class => 'icon icon-add' %>
|
|
|
|
<% 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 %>
|
2008-06-28 00:13:56 +04:00
|
|
|
<% @project.custom_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) %>
|
|
|
|
| <%= link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar', :project_id => @project) %>
|
|
|
|
<% end %>
|
|
|
|
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
|
|
|
| <%= link_to(l(:label_gantt), :controller => 'issues', :action => 'gantt', :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">
|
2009-05-12 23:04:52 +04:00
|
|
|
<% if @users_by_role.any? %>
|
2009-12-17 21:52:28 +03:00
|
|
|
<div class="members box">
|
|
|
|
<h3><%=l(:label_member_plural)%></h3>
|
2009-05-12 23:04:52 +04:00
|
|
|
<p><% @users_by_role.keys.sort.each do |role| %>
|
2009-05-12 23:06:22 +04:00
|
|
|
<%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %><br />
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
|
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 %>
|
|
|
|
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
|
|
|
|
<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>
|
2007-09-22 17:17:49 +04:00
|
|
|
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> |
|
|
|
|
<%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
|
|
|
|
<% 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 %>
|
2007-10-01 17:13:04 +04:00
|
|
|
<%= auto_discovery_link_tag(:atom, {:action => 'activity', :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)) -%>
|