annotate app/views/projects/index.html.erb @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents 433d4f72a19b
children bb32da3bea34 261b3d9a4903
rev   line source
Chris@0 1 <% content_for :header_tags do %>
Chris@0 2 <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
Chris@0 3 <% end %>
Chris@0 4
Chris@0 5 <div class="contextual">
chris@22 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@1115 7 <%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
Chris@1115 8 <%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
Chris@1115 9 <%= link_to l(:label_overall_activity),
Chris@1115 10 { :controller => 'activities', :action => 'index',
Chris@1115 11 :id => nil } %>
Chris@0 12 </div>
Chris@0 13
Chris@0 14 <h2><%=l(:label_project_plural)%></h2>
Chris@0 15
Chris@1115 16 <div id="projects-index">
Chris@0 17 <%= render_project_hierarchy(@projects)%>
Chris@1115 18 </div>
Chris@0 19
Chris@0 20 <% if User.current.logged? %>
Chris@0 21 <p style="text-align:right;">
Chris@0 22 <span class="my-project"><%= l(:label_my_projects) %></span>
Chris@0 23 </p>
Chris@0 24 <% end %>
Chris@0 25
Chris@0 26 <% other_formats_links do |f| %>
Chris@909 27 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@0 28 <% end %>
Chris@0 29
Chris@1115 30 <% content_for :sidebar do %>
Chris@1115 31 <%= form_tag({}, :method => :get) do %>
Chris@1115 32 <h3><%= l(:label_project_plural) %></h3>
Chris@1115 33 <label for="closed"><%= check_box_tag 'closed', 1, params[:closed] %> <%= l(:label_show_closed_projects) %></label>
Chris@1115 34 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
Chris@1115 35 <% end %>
Chris@1115 36 <% end %>
Chris@1115 37
Chris@0 38 <% html_title(l(:label_project_plural)) -%>