You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 1.1KB

12345678910111213141516171819202122232425262728
  1. <% content_for :header_tags do %>
  2. <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
  3. <% end %>
  4. <div class="contextual">
  5. <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
  6. <%= link_to(l(:label_issue_view_all), issues_path) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
  7. <%= link_to(l(:label_overall_spent_time), time_entries_path) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
  8. <%= link_to l(:label_overall_activity),
  9. { :controller => 'activities', :action => 'index',
  10. :id => nil } %>
  11. </div>
  12. <h2><%=l(:label_project_plural)%></h2>
  13. <%= render_project_hierarchy(@projects)%>
  14. <% if User.current.logged? %>
  15. <p style="text-align:right;">
  16. <span class="my-project"><%= l(:label_my_projects) %></span>
  17. </p>
  18. <% end %>
  19. <% other_formats_links do |f| %>
  20. <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
  21. <% end %>
  22. <% html_title(l(:label_project_plural)) -%>