annotate .svn/pristine/73/739ef0925b98594bbd1e537e9b5096bdd12d62a3.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

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