To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_bibliography / app / views / projects / show.html.erb @ 1075:2cc9845228b3
History | View | Annotate | Download (4.75 KB)
| 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 |
|
| 6 |
<% if @project.module_enabled? :redmine_bibliography %>
|
| 7 |
<% if User.current.allowed_to?(:add_publication, @project) %>
|
| 8 |
<%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
|
| 9 |
<% end %>
|
| 10 |
<% end %>
|
| 11 |
</div>
|
| 12 |
|
| 13 |
<% if @project.has_welcome_page %>
|
| 14 |
<% page = @project.wiki.find_page("Overview") %>
|
| 15 |
<% end %>
|
| 16 |
|
| 17 |
<% if page %>
|
| 18 |
|
| 19 |
<% if @project.module_enabled? :wiki %>
|
| 20 |
<% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
|
| 21 |
<div class="contextual"> |
| 22 |
<%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
|
| 23 |
</div>
|
| 24 |
<% end %>
|
| 25 |
<% end %>
|
| 26 |
|
| 27 |
<div class="contextual" style="clear: right"> |
| 28 |
<ul>
|
| 29 |
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> |
| 30 |
<% if @subprojects.any? %>
|
| 31 |
<li><%=l(:label_subproject_plural)%>: |
| 32 |
<%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> |
| 33 |
<% end %>
|
| 34 |
</ul>
|
| 35 |
</div>
|
| 36 |
|
| 37 |
<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
|
| 38 |
|
| 39 |
<% else %>
|
| 40 |
|
| 41 |
<h2><%=l(:label_overview)%></h2> |
| 42 |
|
| 43 |
<div class="splitcontentleft"> |
| 44 |
<div class="wiki"> |
| 45 |
<%= textilizable @project.description %>
|
| 46 |
</div>
|
| 47 |
<ul>
|
| 48 |
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %> |
| 49 |
<% if @subprojects.any? %>
|
| 50 |
<li><%=l(:label_subproject_plural)%>: |
| 51 |
<%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> |
| 52 |
<% end %>
|
| 53 |
<% @project.visible_custom_field_values.each do |custom_value| %>
|
| 54 |
<% if !custom_value.value.blank? %>
|
| 55 |
<li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> |
| 56 |
<% end %>
|
| 57 |
<% end %>
|
| 58 |
</ul>
|
| 59 |
|
| 60 |
<% if User.current.allowed_to?(:view_issues, @project) %>
|
| 61 |
<div class="issues box"> |
| 62 |
<h3><%=l(:label_issue_tracking)%></h3> |
| 63 |
<ul>
|
| 64 |
<% for tracker in @trackers %>
|
| 65 |
<li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, |
| 66 |
:set_filter => 1,
|
| 67 |
"tracker_id" => tracker.id %>:
|
| 68 |
<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
|
| 69 |
:total => @total_issues_by_tracker[tracker].to_i) %>
|
| 70 |
</li>
|
| 71 |
<% end %>
|
| 72 |
</ul>
|
| 73 |
<p>
|
| 74 |
<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
|
| 75 |
<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
|
| 76 |
| <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
|
| 77 |
<% end %>
|
| 78 |
<% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
|
| 79 |
| <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
|
| 80 |
<% end %>
|
| 81 |
</p>
|
| 82 |
</div>
|
| 83 |
<% end %>
|
| 84 |
<%= call_hook(:view_projects_show_left, :project => @project) %>
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<div class="splitcontentright"> |
| 88 |
|
| 89 |
<%= render :partial => 'bibliography_box' %>
|
| 90 |
|
| 91 |
<%= render :partial => 'members_box' %>
|
| 92 |
|
| 93 |
<% if @news.any? && authorize_for('news', 'index') %>
|
| 94 |
<div class="news box"> |
| 95 |
<h3><%=l(:label_news_latest)%></h3> |
| 96 |
<%= render :partial => 'news/news', :collection => @news %>
|
| 97 |
<p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> |
| 98 |
</div>
|
| 99 |
<% end %>
|
| 100 |
<%= call_hook(:view_projects_show_right, :project => @project) %>
|
| 101 |
</div>
|
| 102 |
|
| 103 |
<% content_for :sidebar do %>
|
| 104 |
<%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
|
| 105 |
<% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
|
| 106 |
<h3><%= l(:label_spent_time) %></h3> |
| 107 |
<p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> |
| 108 |
<p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | |
| 109 |
<%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p> |
| 110 |
<% end %>
|
| 111 |
<%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
|
| 112 |
<% end %>
|
| 113 |
|
| 114 |
<% end %>
|
| 115 |
|
| 116 |
<% content_for :header_tags do %>
|
| 117 |
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
|
| 118 |
<% end %>
|
| 119 |
|
| 120 |
<% html_title(l(:label_overview)) -%>
|