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