annotate app/views/projects/index.rhtml @ 124:bc91f2025d05 cannam

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 605adf7e1735
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@123 11 <% if @user_projects %>
luisf@69 12
chris@123 13 <%= render_my_project_hierarchy(@user_projects)%>
Chris@0 14
luisf@69 15 <% end %>
luisf@69 16
chris@124 17 <h2>
chris@124 18 <%= l("label_project_all") %>
chris@124 19 </h2>
chris@124 20
chris@124 21 <%= render_project_table(@projects) %>
chris@123 22
chris@123 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)) -%>