annotate app/views/projects/index.rhtml @ 132:ab611b7c7ecc cannam-pre-20110113-merge

Make the project list into a sortable table with a little more information in it
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 18 Jan 2011 17:02:06 +0000
parents 513e61d1b4da
children edce3dafd217
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_overall_activity), { :controller => 'activities', :action => 'index' }%>
Chris@100 7 <%= '| ' + link_to(l(:label_issue_view_all), { :controller => 'issues' }) if User.current.allowed_to?(:view_issues, nil, :global => true) %>
Chris@100 8 <%= '| ' + 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@0 9 </div>
Chris@0 10
chris@131 11 <% if @user_projects %>
luisf@69 12
chris@131 13 <%= render_my_project_hierarchy(@user_projects)%>
Chris@0 14
luisf@69 15 <% end %>
luisf@69 16
chris@132 17 <h2>
chris@132 18 <%= l("label_project_all") %>
chris@132 19 </h2>
chris@132 20
chris@132 21 <%= render_project_table(@projects) %>
chris@131 22
chris@131 23 <p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
luisf@69 24
Chris@0 25
Chris@0 26 <% other_formats_links do |f| %>
Chris@0 27 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@0 28 <% end %>
Chris@0 29
Chris@0 30 <% html_title(l(:label_project_plural)) -%>