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@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: 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:

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)) -%>