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.

date_index.html.erb 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_date) %></h2>
  11. <% if @pages.empty? %>
  12. <p class="nodata"><%= l(:label_no_data) %></p>
  13. <% end %>
  14. <% @pages_by_date.keys.sort.reverse_each do |date| %>
  15. <h3><%= format_date(date) %></h3>
  16. <ul>
  17. <% @pages_by_date[date].each do |page| %>
  18. <li><%= link_to page.pretty_title, :action => 'show', :id => page.title, :project_id => page.project %></li>
  19. <% end %>
  20. </ul>
  21. <% end %>
  22. <% content_for :sidebar do %>
  23. <%= render :partial => 'sidebar' %>
  24. <% end %>
  25. <% unless @pages.empty? %>
  26. <% other_formats_links do |f| %>
  27. <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
  28. <% if User.current.allowed_to?(:export_wiki_pages, @project) %>
  29. <%= f.link_to('PDF', :url => {:action => 'export', :format => 'pdf'}) %>
  30. <%= f.link_to('HTML', :url => {:action => 'export'}) %>
  31. <% end %>
  32. <% end %>
  33. <% end %>
  34. <% content_for :header_tags do %>
  35. <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
  36. <% end %>