Chris@1464
|
1 <% content_for :header_tags do %>
|
Chris@1464
|
2 <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
Chris@1464
|
3 <% end %>
|
Chris@1464
|
4
|
Chris@1464
|
5 <div class="contextual">
|
Chris@1464
|
6 <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
Chris@1464
|
7 <%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
Chris@1464
|
8 <%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
|
Chris@1464
|
9 <%= link_to l(:label_overall_activity),
|
Chris@1464
|
10 { :controller => 'activities', :action => 'index',
|
Chris@1464
|
11 :id => nil } %>
|
Chris@1464
|
12 </div>
|
Chris@1464
|
13
|
Chris@1464
|
14 <h2><%= l(:label_project_plural) %></h2>
|
Chris@1464
|
15
|
Chris@1464
|
16 <div id="projects-index">
|
Chris@1464
|
17 <%= render_project_hierarchy(@projects) %>
|
Chris@1464
|
18 </div>
|
Chris@1464
|
19
|
Chris@1464
|
20 <% if User.current.logged? %>
|
Chris@1464
|
21 <p style="text-align:right;">
|
Chris@1464
|
22 <span class="my-project"><%= l(:label_my_projects) %></span>
|
Chris@1464
|
23 </p>
|
Chris@1464
|
24 <% end %>
|
Chris@1464
|
25
|
Chris@1464
|
26 <% other_formats_links do |f| %>
|
Chris@1464
|
27 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
Chris@1464
|
28 <% end %>
|
Chris@1464
|
29
|
Chris@1464
|
30 <% content_for :sidebar do %>
|
Chris@1464
|
31 <%= form_tag({}, :method => :get) do %>
|
Chris@1464
|
32 <h3><%= l(:label_project_plural) %></h3>
|
Chris@1464
|
33 <label for="closed"><%= check_box_tag 'closed', 1, params[:closed] %> <%= l(:label_show_closed_projects) %></label>
|
Chris@1464
|
34 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
|
Chris@1464
|
35 <% end %>
|
Chris@1464
|
36 <% end %>
|
Chris@1464
|
37
|
Chris@1464
|
38 <% html_title(l(:label_project_plural)) -%>
|