luis@465:
luis@465: <% if User.current.allowed_to?(:add_subprojects, @project) %>
luis@465: <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
luis@465: <% end %>
luis@546:
Chris@1232: <% if User.current.allowed_to?(:close_project, @project) %>
Chris@1232: <% if @project.active? %>
Chris@1232: <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
Chris@1232: <% else %>
Chris@1232: <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
Chris@1232: <% end %>
chris@1233: <% end %>
Chris@1232:
luis@550: <% if @project.module_enabled? :redmine_bibliography %>
luis@626: <% if User.current.allowed_to?(:add_publication, @project) %>
luis@626: <%= link_to l(:label_add_publication_to_project), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
luis@626: <% end %>
luis@550: <% end %>
luis@465:
luis@465:
chris@680: <% if @project.has_welcome_page %>
chris@680: <% page = @project.wiki.find_page("Overview") %>
chris@680: <% end %>
chris@680:
chris@680: <% if page %>
chris@680:
chris@680: <% if @project.module_enabled? :wiki %>
chris@680: <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
chris@680:
chris@680: <%= link_to(l(:button_welcome_page_edit_this), {:controller => 'wiki', :action => 'edit', :project_id => @project, :id => Wiki.titleize("Overview")}, :class => 'icon icon-edit') %>
chris@680:
chris@680: <% end %>
chris@680: <% end %>
chris@680:
chris@680:
chris@680:
Chris@1232: <% unless @project.homepage.blank? %>- <%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %>
<% end %>
chris@680: <% if @subprojects.any? %>
chris@680: - <%=l(:label_subproject_plural)%>:
Chris@1232: <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %>
chris@680: <% end %>
chris@680:
chris@680:
chris@680:
chris@680: <%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
chris@680:
chris@680: <% else %>
chris@680:
luis@465: <%=l(:label_overview)%>
luis@465:
Chris@1232: <% unless @project.active? %>
Chris@1232: <%= l(:text_project_closed) %>
Chris@1232: <% end %>
Chris@1232:
luis@465:
Chris@1232: <% if @project.description.present? %>
luis@465:
luis@465: <%= textilizable @project.description %>
luis@465:
Chris@1232: <% end %>
luis@465:
Chris@1232: <% unless @project.homepage.blank? %>- <%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %>
<% end %>
luis@465: <% if @subprojects.any? %>
luis@465: - <%=l(:label_subproject_plural)%>:
Chris@1232: <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %>
luis@465: <% end %>
luis@465: <% @project.visible_custom_field_values.each do |custom_value| %>
luis@465: <% if !custom_value.value.blank? %>
luis@465: - <%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %>
luis@465: <% end %>
luis@465: <% end %>
luis@465:
luis@465:
Chris@1232: <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
luis@465:
luis@465:
<%=l(:label_issue_tracking)%>
luis@465:
luis@465: <% for tracker in @trackers %>
Chris@1232: - <%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
luis@465: :set_filter => 1,
luis@465: "tracker_id" => tracker.id %>:
Chris@1232: <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
Chris@1232: :total => @total_issues_by_tracker[tracker].to_i) %>
Chris@1232:
luis@465: <% end %>
luis@465:
luis@465:
luis@465: <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
luis@465: <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
luis@465: | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
luis@465: <% end %>
luis@465: <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
luis@465: | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
luis@465: <% end %>
luis@465:
luis@465:
luis@465: <% end %>
luis@465: <%= call_hook(:view_projects_show_left, :project => @project) %>
luis@465:
luis@465:
luis@465:
luis@465:
luis@465: <%= render :partial => 'bibliography_box' %>
luis@465:
luis@465: <%= render :partial => 'members_box' %>
luis@465:
luis@465: <% if @news.any? && authorize_for('news', 'index') %>
luis@465:
luis@465:
<%=l(:label_news_latest)%>
luis@465: <%= render :partial => 'news/news', :collection => @news %>
luis@465:
<%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %>
luis@465:
luis@465: <% end %>
Chris@1232:
Chris@1232: <%= render :partial => 'activities/recent' %>
Chris@1232:
luis@465: <%= call_hook(:view_projects_show_right, :project => @project) %>
luis@465:
luis@465:
luis@465: <% content_for :sidebar do %>
chris@810: <%= call_hook(:view_projects_show_sidebar_top, :project => @project) %>
Chris@1232: <% if @total_hours.present? && User.current.allowed_to?(:view_time_entries, @project) %>
luis@465: <%= l(:label_spent_time) %>
luis@465: <%= l_hours(@total_hours) %>
Chris@1232:
Chris@1232: <% if User.current.allowed_to?(:log_time, @project) %>
Chris@1232: <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
Chris@1232: <% end %>
Chris@1232: <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
Chris@1232: <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %>
luis@465: <% end %>
luis@465: <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
luis@465: <% end %>
luis@465:
chris@680: <% end %>
chris@680:
luis@465: <% content_for :header_tags do %>
luis@465: <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
luis@465: <% end %>
luis@465:
luis@465: <% html_title(l(:label_overview)) -%>