Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/app/views/projects/index.rhtml Mon Jan 17 14:47:09 2011 +0000 +++ b/app/views/projects/index.rhtml Mon Jan 17 17:22:39 2011 +0000 @@ -8,18 +8,15 @@ <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> </div> -<% if User.current.logged? %> +<% if @user_projects %> - <%= render_my_project_hierarchy(@projects)%> + <%= render_my_project_hierarchy(@user_projects)%> - <%= render_other_project_hierarchy(@projects)%> - -<% else %> - - <h2><%=l(:label_project_plural)%></h2> - <%= render_project_hierarchy(@projects)%> <% end %> +<%= render_other_project_hierarchy(@projects)%> + +<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p> <% other_formats_links do |f| %>