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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="contextual">
  2. <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
  3. <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
  4. <% end %>
  5. <%= watcher_link(@wiki, User.current) %>
  6. <% if User.current.allowed_to?(:manage_wiki, @project) %>
  7. <%= link_to l(:button_delete), {:controller => 'wikis', :action => 'destroy', :id => @project}, :class => 'icon icon-del' %>
  8. <% end %>
  9. </div>
  10. <h2><%= l(:label_index_by_title) %></h2>
  11. <% if @pages.empty? %>
  12. <p class="nodata"><%= l(:label_no_data) %></p>
  13. <% end %>
  14. <%= render_page_hierarchy(@pages_by_parent_id, nil, :timestamp => true) %>
  15. <% content_for :sidebar do %>
  16. <%= render :partial => 'sidebar' %>
  17. <% end %>
  18. <% unless @pages.empty? %>
  19. <% other_formats_links do |f| %>
  20. <%= f.link_to 'Atom',
  21. :url => {:controller => 'activities', :action => 'index',
  22. :id => @project, :show_wiki_edits => 1,
  23. :key => User.current.rss_key} %>
  24. <% if User.current.allowed_to?(:export_wiki_pages, @project) %>
  25. <%= f.link_to('PDF', :url => {:action => 'export', :format => 'pdf'}) %>
  26. <%= f.link_to('HTML', :url => {:action => 'export'}) %>
  27. <% end %>
  28. <% end %>
  29. <% end %>
  30. <% content_for :header_tags do %>
  31. <%= auto_discovery_link_tag(
  32. :atom, :controller => 'activities', :action => 'index',
  33. :id => @project, :show_wiki_edits => 1, :format => 'atom',
  34. :key => User.current.rss_key) %>
  35. <% end %>