To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / show.html.erb @ 1531:ae8145b28b2b
History | View | Annotate | Download (4.92 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | 909:cbb26bc654de | Chris | <% if User.current.allowed_to?(:add_subprojects, @project) %>
|
| 3 | 1464:261b3d9a4903 | Chris | <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
|
| 4 | 909:cbb26bc654de | Chris | <% end %>
|
| 5 | 1115:433d4f72a19b | Chris | <% if User.current.allowed_to?(:close_project, @project) %>
|
| 6 | <% if @project.active? %>
|
||
| 7 | <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
|
||
| 8 | <% else %>
|
||
| 9 | <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
|
||
| 10 | <% end %>
|
||
| 11 | <% end %>
|
||
| 12 | 0:513646585e45 | Chris | </div>
|
| 13 | |||
| 14 | 351:ebf53b46f3f3 | chris | <% if @project.has_welcome_page %>
|
| 15 | 350:a1e6dc0e204b | chris | <% page = @project.wiki.find_page("Overview") %>
|
| 16 | 351:ebf53b46f3f3 | chris | <% end %>
|
| 17 | 350:a1e6dc0e204b | chris | |
| 18 | <% if page %>
|
||
| 19 | |||
| 20 | 490:cd64fb9ab701 | chris | <% if @project.module_enabled? :wiki %>
|
| 21 | <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
|
||
| 22 | <div class="contextual"> |
||
| 23 | <%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
|
||
| 24 | </div>
|
||
| 25 | <% end %>
|
||
| 26 | <% end %>
|
||
| 27 | |||
| 28 | 350:a1e6dc0e204b | chris | <div class="contextual" style="clear: right"> |
| 29 | <ul>
|
||
| 30 | 1143:908e97507ef8 | chris | <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li><% end %> |
| 31 | 350:a1e6dc0e204b | chris | <% if @subprojects.any? %>
|
| 32 | <li><%=l(:label_subproject_plural)%>: |
||
| 33 | 1143:908e97507ef8 | chris | <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li> |
| 34 | 350:a1e6dc0e204b | chris | <% end %>
|
| 35 | </ul>
|
||
| 36 | </div>
|
||
| 37 | |||
| 38 | <%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
|
||
| 39 | |||
| 40 | <% else %>
|
||
| 41 | |||
| 42 | 909:cbb26bc654de | Chris | <h2><%=l(:label_overview)%></h2> |
| 43 | |||
| 44 | 1115:433d4f72a19b | Chris | <% unless @project.active? %>
|
| 45 | <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p> |
||
| 46 | <% end %>
|
||
| 47 | |||
| 48 | 0:513646585e45 | Chris | <div class="splitcontentleft"> |
| 49 | 1115:433d4f72a19b | Chris | <% if @project.description.present? %>
|
| 50 | 909:cbb26bc654de | Chris | <div class="wiki"> |
| 51 | <%= textilizable @project.description %>
|
||
| 52 | </div>
|
||
| 53 | 1115:433d4f72a19b | Chris | <% end %>
|
| 54 | 909:cbb26bc654de | Chris | <ul>
|
| 55 | 1115:433d4f72a19b | Chris | <% unless @project.homepage.blank? %>
|
| 56 | <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li> |
||
| 57 | <% end %>
|
||
| 58 | 0:513646585e45 | Chris | <% if @subprojects.any? %>
|
| 59 | 1115:433d4f72a19b | Chris | <li><%=l(:label_subproject_plural)%>: |
| 60 | 1464:261b3d9a4903 | Chris | <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %></li> |
| 61 | 0:513646585e45 | Chris | <% end %>
|
| 62 | 909:cbb26bc654de | Chris | <% @project.visible_custom_field_values.each do |custom_value| %>
|
| 63 | <% if !custom_value.value.blank? %>
|
||
| 64 | <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li> |
||
| 65 | <% end %>
|
||
| 66 | <% end %>
|
||
| 67 | </ul>
|
||
| 68 | 0:513646585e45 | Chris | |
| 69 | 345:361602c5e6bb | chris | <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
|
| 70 | |||
| 71 | 909:cbb26bc654de | Chris | <div class="issues box"> |
| 72 | 0:513646585e45 | Chris | <h3><%=l(:label_issue_tracking)%></h3> |
| 73 | <ul>
|
||
| 74 | 909:cbb26bc654de | Chris | <% for tracker in @trackers %>
|
| 75 | 1464:261b3d9a4903 | Chris | <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>: |
| 76 | 909:cbb26bc654de | Chris | <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
|
| 77 | :total => @total_issues_by_tracker[tracker].to_i) %>
|
||
| 78 | </li>
|
||
| 79 | 0:513646585e45 | Chris | <% end %>
|
| 80 | </ul>
|
||
| 81 | <p>
|
||
| 82 | 1464:261b3d9a4903 | Chris | <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
|
| 83 | 909:cbb26bc654de | Chris | <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
| 84 | 1464:261b3d9a4903 | Chris | | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
|
| 85 | 909:cbb26bc654de | Chris | <% end %>
|
| 86 | <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
||
| 87 | 1464:261b3d9a4903 | Chris | | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
|
| 88 | 909:cbb26bc654de | Chris | <% end %>
|
| 89 | </p>
|
||
| 90 | 0:513646585e45 | Chris | </div>
|
| 91 | 345:361602c5e6bb | chris | |
| 92 | 0:513646585e45 | Chris | <% end %>
|
| 93 | 344:1a514b9347d4 | chris | |
| 94 | 0:513646585e45 | Chris | <%= call_hook(:view_projects_show_left, :project => @project) %>
|
| 95 | </div>
|
||
| 96 | |||
| 97 | <div class="splitcontentright"> |
||
| 98 | 14:1d32c0a0efbf | Chris | <%= render :partial => 'members_box' %>
|
| 99 | 909:cbb26bc654de | Chris | |
| 100 | 0:513646585e45 | Chris | <% if @news.any? && authorize_for('news', 'index') %>
|
| 101 | <div class="news box"> |
||
| 102 | 909:cbb26bc654de | Chris | <h3><%=l(:label_news_latest)%></h3> |
| 103 | 0:513646585e45 | Chris | <%= render :partial => 'news/news', :collection => @news %>
|
| 104 | 1464:261b3d9a4903 | Chris | <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p> |
| 105 | 909:cbb26bc654de | Chris | </div>
|
| 106 | 0:513646585e45 | Chris | <% end %>
|
| 107 | 344:1a514b9347d4 | chris | |
| 108 | <%= render :partial => 'activities/recent' %>
|
||
| 109 | |||
| 110 | 0:513646585e45 | Chris | <%= call_hook(:view_projects_show_right, :project => @project) %>
|
| 111 | </div>
|
||
| 112 | |||
| 113 | <% content_for :sidebar do %>
|
||
| 114 | 810:aaa26ccafb00 | chris | <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
|
| 115 | 441:cbce1fd3b1b7 | Chris | <% if @total_hours.present? %>
|
| 116 | 0:513646585e45 | Chris | <h3><%= l(:label_spent_time) %></h3> |
| 117 | <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> |
||
| 118 | 1115:433d4f72a19b | Chris | <p>
|
| 119 | <% if User.current.allowed_to?(:log_time, @project) %>
|
||
| 120 | <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
|
||
| 121 | <% end %>
|
||
| 122 | <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
|
||
| 123 | <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p> |
||
| 124 | 0:513646585e45 | Chris | <% end %>
|
| 125 | <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
||
| 126 | <% end %>
|
||
| 127 | |||
| 128 | 350:a1e6dc0e204b | chris | <% end %>
|
| 129 | |||
| 130 | 0:513646585e45 | Chris | <% content_for :header_tags do %>
|
| 131 | 22:40f7cfd4df19 | chris | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
| 132 | 0:513646585e45 | Chris | <% end %>
|
| 133 | |||
| 134 | 1511:e1cfd013ef49 | chris | <% html_title('') -%> |