annotate .svn/pristine/73/739ef0925b98594bbd1e537e9b5096bdd12d62a3.svn-base @ 1327:287f201c2802 redmine-2.2-integration

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