Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <% content_for :header_tags do %>
  2. <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
  3. <% end %>
  4.  
  5. <div class="contextual">
  6. <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
  7. <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
  8. <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
  9. <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>
  10. </div>
  11.  
  12. <h2><%=l(:label_project_plural)%></h2>
  13.  
  14. <%= render_project_hierarchy(@projects)%>
  15.  
  16. <% if User.current.logged? %>
  17. <p style="text-align:right;">
  18. <span class="my-project"><%= l(:label_my_projects) %></span>
  19. </p>
  20. <% end %>
  21.  
  22. <% other_formats_links do |f| %>
  23. <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
  24. <% end %>
  25.  
  26. <% html_title(l(:label_project_plural)) -%>
Add Comment
Please, Sign In to add comment