annotate app/views/projects/show.html.erb @ 1516:b450a9d58aed redmine-2.4

Update to Redmine SVN revision 13356 on 2.4-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:28:31 +0100
parents 261b3d9a4903
children 4f746d8966dd
rev   line source
Chris@0 1 <div class="contextual">
Chris@909 2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
Chris@1464 3 <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
Chris@909 4 <% end %>
Chris@1115 5 <% if User.current.allowed_to?(:close_project, @project) %>
Chris@1115 6 <% if @project.active? %>
Chris@1115 7 <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
Chris@1115 8 <% else %>
Chris@1115 9 <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
Chris@1115 10 <% end %>
Chris@1115 11 <% end %>
Chris@0 12 </div>
Chris@0 13
Chris@909 14 <h2><%=l(:label_overview)%></h2>
Chris@909 15
Chris@1115 16 <% unless @project.active? %>
Chris@1115 17 <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
Chris@1115 18 <% end %>
Chris@1115 19
Chris@0 20 <div class="splitcontentleft">
Chris@1115 21 <% if @project.description.present? %>
Chris@909 22 <div class="wiki">
Chris@909 23 <%= textilizable @project.description %>
Chris@909 24 </div>
Chris@1115 25 <% end %>
Chris@909 26 <ul>
Chris@1115 27 <% unless @project.homepage.blank? %>
Chris@1115 28 <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
Chris@1115 29 <% end %>
Chris@0 30 <% if @subprojects.any? %>
Chris@1115 31 <li><%=l(:label_subproject_plural)%>:
Chris@1464 32 <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li>
Chris@0 33 <% end %>
Chris@909 34 <% @project.visible_custom_field_values.each do |custom_value| %>
Chris@909 35 <% if !custom_value.value.blank? %>
Chris@909 36 <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
Chris@909 37 <% end %>
Chris@909 38 <% end %>
Chris@909 39 </ul>
Chris@0 40
Chris@0 41 <% if User.current.allowed_to?(:view_issues, @project) %>
Chris@909 42 <div class="issues box">
Chris@0 43 <h3><%=l(:label_issue_tracking)%></h3>
Chris@0 44 <ul>
Chris@909 45 <% for tracker in @trackers %>
Chris@1464 46 <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
Chris@909 47 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
Chris@909 48 :total => @total_issues_by_tracker[tracker].to_i) %>
Chris@909 49 </li>
Chris@0 50 <% end %>
Chris@0 51 </ul>
Chris@0 52 <p>
Chris@1464 53 <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
Chris@909 54 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
Chris@1464 55 | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
Chris@909 56 <% end %>
Chris@909 57 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
Chris@1464 58 | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
Chris@909 59 <% end %>
Chris@909 60 </p>
Chris@0 61 </div>
Chris@0 62 <% end %>
Chris@0 63 <%= call_hook(:view_projects_show_left, :project => @project) %>
Chris@0 64 </div>
Chris@0 65
Chris@0 66 <div class="splitcontentright">
Chris@14 67 <%= render :partial => 'members_box' %>
Chris@909 68
Chris@0 69 <% if @news.any? && authorize_for('news', 'index') %>
Chris@0 70 <div class="news box">
Chris@909 71 <h3><%=l(:label_news_latest)%></h3>
Chris@0 72 <%= render :partial => 'news/news', :collection => @news %>
Chris@1464 73 <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
Chris@909 74 </div>
Chris@0 75 <% end %>
Chris@0 76 <%= call_hook(:view_projects_show_right, :project => @project) %>
Chris@0 77 </div>
Chris@0 78
Chris@0 79 <% content_for :sidebar do %>
Chris@441 80 <% if @total_hours.present? %>
Chris@0 81 <h3><%= l(:label_spent_time) %></h3>
Chris@0 82 <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
Chris@1115 83 <p>
Chris@1115 84 <% if User.current.allowed_to?(:log_time, @project) %>
Chris@1115 85 <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
Chris@1115 86 <% end %>
Chris@1115 87 <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
Chris@1115 88 <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
Chris@0 89 <% end %>
Chris@0 90 <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
Chris@0 91 <% end %>
Chris@0 92
Chris@0 93 <% content_for :header_tags do %>
chris@22 94 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
Chris@0 95 <% end %>
Chris@0 96
Chris@0 97 <% html_title(l(:label_overview)) -%>