annotate app/views/projects/index.rhtml @ 100:1412841d48a3 cannam

* Projects page: If I'm logged in but have no projects, use single All Projects heading * Projects page: Rename "Other Projects" to "Everyone Else's Projects" * Projects page: Remove stars from my project links; remove key explaining star * Projects page: Reorder top-right nav links to isolate the "+ New Project" icon
author Chris Cannam
date Thu, 16 Dec 2010 16:29:06 +0000
parents dc22c3eb3c81
children 605adf7e1735
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
luisf@69 11 <% if User.current.logged? %>
luisf@69 12
luisf@69 13 <%= render_my_project_hierarchy(@projects)%>
Chris@0 14
luisf@69 15 <%= render_other_project_hierarchy(@projects)%>
luisf@68 16
luisf@69 17 <% else %>
luisf@69 18
luisf@69 19 <h2><%=l(:label_project_plural)%></h2>
luisf@69 20 <%= render_project_hierarchy(@projects)%>
luisf@69 21 <% end %>
luisf@69 22
luisf@69 23
Chris@0 24
Chris@0 25 <% other_formats_links do |f| %>
Chris@0 26 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@0 27 <% end %>
Chris@0 28
Chris@0 29 <% html_title(l(:label_project_plural)) -%>