2010-06-19 21:44:59 +04:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
|
|
|
<% end %>
|
|
|
|
|
2008-03-11 22:33:38 +03:00
|
|
|
<div class="contextual">
|
2010-09-07 19:00:27 +04:00
|
|
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
2011-12-10 17:33:01 +04:00
|
|
|
<%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
|
2012-02-22 18:36:31 +04:00
|
|
|
<%= link_to l(:label_overall_activity),
|
|
|
|
{ :controller => 'activities', :action => 'index',
|
|
|
|
:id => nil } %>
|
2008-03-11 22:33:38 +03:00
|
|
|
</div>
|
|
|
|
|
2007-04-21 20:40:56 +04:00
|
|
|
<h2><%=l(:label_project_plural)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2012-08-10 21:30:35 +04:00
|
|
|
<div id="projects-index">
|
2009-01-24 14:31:15 +03:00
|
|
|
<%= render_project_hierarchy(@projects)%>
|
2012-08-10 21:30:35 +04:00
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if User.current.logged? %>
|
2008-05-27 20:49:18 +04:00
|
|
|
<p style="text-align:right;">
|
2009-01-24 14:31:15 +03:00
|
|
|
<span class="my-project"><%= l(:label_my_projects) %></span>
|
2008-05-27 20:49:18 +04:00
|
|
|
</p>
|
2007-04-21 20:40:56 +04:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2009-01-29 16:53:17 +03:00
|
|
|
<% other_formats_links do |f| %>
|
2011-09-14 16:13:15 +04:00
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
2009-01-29 16:53:17 +03:00
|
|
|
<% end %>
|
2008-05-27 20:49:18 +04:00
|
|
|
|
2012-06-25 21:49:35 +04:00
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= form_tag({}, :method => :get) do %>
|
|
|
|
<h3><%= l(:label_project_plural) %></h3>
|
|
|
|
<label for="closed"><%= check_box_tag 'closed', 1, params[:closed] %> <%= l(:label_show_closed_projects) %></label>
|
|
|
|
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_project_plural)) -%>
|