annotate app/views/projects/index.rhtml @ 123:605adf7e1735
cannam
Start work on paginating and refining project list layout
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Mon, 17 Jan 2011 17:22:39 +0000 |
parents |
1412841d48a3 |
children |
bc91f2025d05 |
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@123
|
17 <%= render_other_project_hierarchy(@projects)%>
|
chris@123
|
18
|
chris@123
|
19 <p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
|
luisf@69
|
20
|
Chris@0
|
21
|
Chris@0
|
22 <% other_formats_links do |f| %>
|
Chris@0
|
23 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
Chris@0
|
24 <% end %>
|
Chris@0
|
25
|
Chris@0
|
26 <% html_title(l(:label_project_plural)) -%>
|