You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

show.html.erb 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <div class="contextual">
  2. <% if User.current.allowed_to?(:add_subprojects, @project) %>
  3. <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
  4. <% end %>
  5. </div>
  6. <h2><%=l(:label_overview)%></h2>
  7. <div class="splitcontentleft">
  8. <div class="wiki">
  9. <%= textilizable @project.description %>
  10. </div>
  11. <ul>
  12. <% unless @project.homepage.blank? %>
  13. <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
  14. <% end %>
  15. <% if @subprojects.any? %>
  16. <li><%=l(:label_subproject_plural)%>:
  17. <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
  18. <% end %>
  19. <% @project.visible_custom_field_values.each do |custom_value| %>
  20. <% if !custom_value.value.blank? %>
  21. <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
  22. <% end %>
  23. <% end %>
  24. </ul>
  25. <% if User.current.allowed_to?(:view_issues, @project) %>
  26. <div class="issues box">
  27. <h3><%=l(:label_issue_tracking)%></h3>
  28. <ul>
  29. <% for tracker in @trackers %>
  30. <li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
  31. :set_filter => 1,
  32. "tracker_id" => tracker.id %>:
  33. <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
  34. :total => @total_issues_by_tracker[tracker].to_i) %>
  35. </li>
  36. <% end %>
  37. </ul>
  38. <p>
  39. <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
  40. <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
  41. | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
  42. <% end %>
  43. <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
  44. | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
  45. <% end %>
  46. </p>
  47. </div>
  48. <% end %>
  49. <%= call_hook(:view_projects_show_left, :project => @project) %>
  50. </div>
  51. <div class="splitcontentright">
  52. <%= render :partial => 'members_box' %>
  53. <% if @news.any? && authorize_for('news', 'index') %>
  54. <div class="news box">
  55. <h3><%=l(:label_news_latest)%></h3>
  56. <%= render :partial => 'news/news', :collection => @news %>
  57. <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
  58. </div>
  59. <% end %>
  60. <%= call_hook(:view_projects_show_right, :project => @project) %>
  61. </div>
  62. <% content_for :sidebar do %>
  63. <% if @total_hours.present? %>
  64. <h3><%= l(:label_spent_time) %></h3>
  65. <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
  66. <p><%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
  67. <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
  68. <% end %>
  69. <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
  70. <% end %>
  71. <% content_for :header_tags do %>
  72. <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
  73. <% end %>
  74. <% html_title(l(:label_overview)) -%>