To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_bibliography / app / views / projects / show.html.erb @ 1450:020bc7fe7a2a
History | View | Annotate | Download (5.68 KB)
| 1 | 465:5123e3a1c9cb | luis | <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 | 546:7c4b96efa402 | luis | |
| 6 | 1232:345e08eee166 | Chris | <% if User.current.allowed_to?(:close_project, @project) %>
|
| 7 | <% if @project.active? %>
|
||
| 8 | <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
|
||
| 9 | <% else %>
|
||
| 10 | <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
|
||
| 11 | <% end %>
|
||
| 12 | 1233:ed0d04113c93 | chris | <% end %>
|
| 13 | 1232:345e08eee166 | Chris | |
| 14 | 550:2df99e8d191e | luis | <% if @project.module_enabled? :redmine_bibliography %>
|
| 15 | 626:e2663e0bd5a6 | luis | <% if User.current.allowed_to?(:add_publication, @project) %>
|
| 16 | <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
|
||
| 17 | <% end %>
|
||
| 18 | 550:2df99e8d191e | luis | <% end %>
|
| 19 | 465:5123e3a1c9cb | luis | </div>
|
| 20 | |||
| 21 | 680:65abc6b39292 | chris | <% if @project.has_welcome_page %>
|
| 22 | <% page = @project.wiki.find_page("Overview") %>
|
||
| 23 | <% end %>
|
||
| 24 | |||
| 25 | <% if page %>
|
||
| 26 | |||
| 27 | <% if @project.module_enabled? :wiki %>
|
||
| 28 | <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
|
||
| 29 | <div class="contextual"> |
||
| 30 | <%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
|
||
| 31 | </div>
|
||
| 32 | <% end %>
|
||
| 33 | <% end %>
|
||
| 34 | |||
| 35 | <div class="contextual" style="clear: right"> |
||
| 36 | <ul>
|
||
| 37 | 1232:345e08eee166 | Chris | <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li><% end %> |
| 38 | 680:65abc6b39292 | chris | <% if @subprojects.any? %>
|
| 39 | <li><%=l(:label_subproject_plural)%>: |
||
| 40 | 1232:345e08eee166 | Chris | <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li> |
| 41 | 680:65abc6b39292 | chris | <% end %>
|
| 42 | </ul>
|
||
| 43 | </div>
|
||
| 44 | |||
| 45 | <%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
|
||
| 46 | |||
| 47 | <% else %>
|
||
| 48 | |||
| 49 | 465:5123e3a1c9cb | luis | <h2><%=l(:label_overview)%></h2> |
| 50 | |||
| 51 | 1232:345e08eee166 | Chris | <% unless @project.active? %>
|
| 52 | <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p> |
||
| 53 | <% end %>
|
||
| 54 | |||
| 55 | 465:5123e3a1c9cb | luis | <div class="splitcontentleft"> |
| 56 | 1232:345e08eee166 | Chris | <% if @project.description.present? %>
|
| 57 | 465:5123e3a1c9cb | luis | <div class="wiki"> |
| 58 | <%= textilizable @project.description %>
|
||
| 59 | </div>
|
||
| 60 | 1232:345e08eee166 | Chris | <% end %>
|
| 61 | 1447:1e67c667641f | Chris | <div class="overviewfields"> |
| 62 | <% unless @project.homepage.blank? %><h4><%=l(:field_homepage)%>:</h4><ul><li><%= link_to h(@project.homepage), @project.homepage %></li></ul><% end %> |
||
| 63 | 465:5123e3a1c9cb | luis | <% if @subprojects.any? %>
|
| 64 | 1447:1e67c667641f | Chris | <h4><%=l(:label_subproject_plural)%>:</h4> |
| 65 | <ul>
|
||
| 66 | <li><%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join("</li><li>").html_safe %></li> |
||
| 67 | </ul>
|
||
| 68 | 465:5123e3a1c9cb | luis | <% end %>
|
| 69 | <% @project.visible_custom_field_values.each do |custom_value| %>
|
||
| 70 | <% if !custom_value.value.blank? %>
|
||
| 71 | 1447:1e67c667641f | Chris | <h4><%= custom_value.custom_field.name%>:</h4><ul><li><%=h show_value(custom_value) %></li></ul> |
| 72 | 465:5123e3a1c9cb | luis | <% end %>
|
| 73 | <% end %>
|
||
| 74 | 1447:1e67c667641f | Chris | </div>
|
| 75 | 1232:345e08eee166 | Chris | <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
|
| 76 | 465:5123e3a1c9cb | luis | <div class="issues box"> |
| 77 | <h3><%=l(:label_issue_tracking)%></h3> |
||
| 78 | <ul>
|
||
| 79 | <% for tracker in @trackers %>
|
||
| 80 | 1232:345e08eee166 | Chris | <li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project, |
| 81 | 465:5123e3a1c9cb | luis | :set_filter => 1,
|
| 82 | "tracker_id" => tracker.id %>:
|
||
| 83 | 1232:345e08eee166 | Chris | <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
|
| 84 | :total => @total_issues_by_tracker[tracker].to_i) %>
|
||
| 85 | </li>
|
||
| 86 | 465:5123e3a1c9cb | luis | <% end %>
|
| 87 | </ul>
|
||
| 88 | <p>
|
||
| 89 | <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
|
||
| 90 | <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
||
| 91 | | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
|
||
| 92 | <% end %>
|
||
| 93 | <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
||
| 94 | | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
|
||
| 95 | <% end %>
|
||
| 96 | </p>
|
||
| 97 | </div>
|
||
| 98 | <% end %>
|
||
| 99 | <%= call_hook(:view_projects_show_left, :project => @project) %>
|
||
| 100 | </div>
|
||
| 101 | |||
| 102 | <div class="splitcontentright"> |
||
| 103 | |||
| 104 | <%= render :partial => 'bibliography_box' %>
|
||
| 105 | |||
| 106 | <%= render :partial => 'members_box' %>
|
||
| 107 | |||
| 108 | <% if @news.any? && authorize_for('news', 'index') %>
|
||
| 109 | <div class="news box"> |
||
| 110 | <h3><%=l(:label_news_latest)%></h3> |
||
| 111 | <%= render :partial => 'news/news', :collection => @news %>
|
||
| 112 | <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> |
||
| 113 | </div>
|
||
| 114 | <% end %>
|
||
| 115 | 1232:345e08eee166 | Chris | |
| 116 | <%= render :partial => 'activities/recent' %>
|
||
| 117 | |||
| 118 | 465:5123e3a1c9cb | luis | <%= call_hook(:view_projects_show_right, :project => @project) %>
|
| 119 | </div>
|
||
| 120 | |||
| 121 | <% content_for :sidebar do %>
|
||
| 122 | 810:aaa26ccafb00 | chris | <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
|
| 123 | 1232:345e08eee166 | Chris | <% if @total_hours.present? && User.current.allowed_to?(:view_time_entries, @project) %>
|
| 124 | 465:5123e3a1c9cb | luis | <h3><%= l(:label_spent_time) %></h3> |
| 125 | <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> |
||
| 126 | 1232:345e08eee166 | Chris | <p>
|
| 127 | <% if User.current.allowed_to?(:log_time, @project) %>
|
||
| 128 | <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
|
||
| 129 | <% end %>
|
||
| 130 | <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
|
||
| 131 | <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p> |
||
| 132 | 465:5123e3a1c9cb | luis | <% end %>
|
| 133 | <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
||
| 134 | <% end %>
|
||
| 135 | |||
| 136 | 680:65abc6b39292 | chris | <% end %>
|
| 137 | |||
| 138 | 465:5123e3a1c9cb | luis | <% content_for :header_tags do %>
|
| 139 | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
||
| 140 | <% end %>
|
||
| 141 | |||
| 142 | <% html_title(l(:label_overview)) -%> |