show.html.erb
85 lines
| 3.3 KiB
| text/plain
|
TextLexer
|
r3124 | <div class="contextual"> | ||
|
r7112 | <% if User.current.allowed_to?(:add_subprojects, @project) %> | ||
|
r10844 | <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %> | ||
|
r7112 | <% end %> | ||
|
r9700 | <% 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 %> | ||||
|
r3124 | </div> | ||
|
r6221 | <h2><%=l(:label_overview)%></h2> | ||
|
r7110 | |||
|
r9700 | <% unless @project.active? %> | ||
<p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p> | ||||
<% end %> | ||||
|
r330 | <div class="splitcontentleft"> | ||
|
r9700 | <% if @project.description.present? %> | ||
|
r7112 | <div class="wiki"> | ||
<%= textilizable @project.description %> | ||||
</div> | ||||
|
r9700 | <% end %> | ||
|
r7112 | <ul> | ||
|
r8836 | <% unless @project.homepage.blank? %> | ||
|
r13661 | <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li> | ||
|
r8836 | <% end %> | ||
|
r2302 | <% if @subprojects.any? %> | ||
|
r13371 | <li><span class="label"><%=l(:label_subproject_plural)%>:</span> | ||
|
r10844 | <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li> | ||
|
r7112 | <% end %> | ||
|
r13482 | <% render_custom_field_values(@project) do |custom_field, formatted| %> | ||
<li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li> | ||||
|
r2302 | <% end %> | ||
|
r7112 | </ul> | ||
|
r330 | |||
|
r714 | <% if User.current.allowed_to?(:view_issues, @project) %> | ||
|
r6221 | <div class="issues box"> | ||
|
r3065 | <h3><%=l(:label_issue_tracking)%></h3> | ||
|
r330 | <ul> | ||
|
r6221 | <% for tracker in @trackers %> | ||
|
r13661 | <li><%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>: | ||
|
r7112 | <%= 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> | ||||
|
r330 | <% end %> | ||
</ul> | ||||
|
r3075 | <p> | ||
|
r10844 | <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %> | ||
|
r7112 | <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> | ||
|
r10844 | | <%= link_to l(:label_calendar), project_calendar_path(@project) %> | ||
|
r7112 | <% end %> | ||
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> | ||||
|
r10844 | | <%= link_to l(:label_gantt), project_gantt_path(@project) %> | ||
|
r7112 | <% end %> | ||
</p> | ||||
|
r2 | </div> | ||
|
r714 | <% end %> | ||
|
r2594 | <%= call_hook(:view_projects_show_left, :project => @project) %> | ||
|
r330 | </div> | ||
<div class="splitcontentright"> | ||||
|
r3895 | <%= render :partial => 'members_box' %> | ||
|
r6221 | |||
|
r875 | <% if @news.any? && authorize_for('news', 'index') %> | ||
|
r3065 | <div class="news box"> | ||
|
r6221 | <h3><%=l(:label_news_latest)%></h3> | ||
|
r96 | <%= render :partial => 'news/news', :collection => @news %> | ||
|
r10844 | <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p> | ||
|
r6221 | </div> | ||
|
r448 | <% end %> | ||
|
r2594 | <%= call_hook(:view_projects_show_right, :project => @project) %> | ||
|
r641 | </div> | ||
|
r736 | <% content_for :sidebar do %> | ||
|
r13030 | <%= render :partial => 'projects/sidebar' %> | ||
|
r736 | <% end %> | ||
|
r641 | <% content_for :header_tags do %> | ||
|
r3933 | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> | ||
|
r641 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_overview)) -%> | ||