To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / wiki / date_index.html.erb @ 442:753f1380d6bc
History | View | Annotate | Download (1.09 KB)
| 1 | 37:94944d00e43c | chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= watcher_tag(@wiki, User.current) %>
|
||
| 3 | </div>
|
||
| 4 | |||
| 5 | <h2><%= l(:label_index_by_date) %></h2> |
||
| 6 | |||
| 7 | <% if @pages.empty? %>
|
||
| 8 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 9 | <% end %>
|
||
| 10 | |||
| 11 | <% @pages_by_date.keys.sort.reverse.each do |date| %>
|
||
| 12 | <h3><%= format_date(date) %></h3> |
||
| 13 | <ul>
|
||
| 14 | <% @pages_by_date[date].each do |page| %>
|
||
| 15 | <li><%= link_to page.pretty_title, :action => 'show', :id => page.title, :project_id => page.project %></li> |
||
| 16 | <% end %>
|
||
| 17 | </ul>
|
||
| 18 | <% end %>
|
||
| 19 | |||
| 20 | <% content_for :sidebar do %>
|
||
| 21 | <%= render :partial => 'sidebar' %>
|
||
| 22 | <% end %>
|
||
| 23 | |||
| 24 | <% unless @pages.empty? %>
|
||
| 25 | <% other_formats_links do |f| %>
|
||
| 26 | 441:cbce1fd3b1b7 | Chris | <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
|
| 27 | 37:94944d00e43c | chris | <%= f.link_to('HTML', :url => {:action => 'export'}) if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
| 28 | <% end %>
|
||
| 29 | <% end %>
|
||
| 30 | |||
| 31 | <% content_for :header_tags do %>
|
||
| 32 | 441:cbce1fd3b1b7 | Chris | <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
|
| 33 | 37:94944d00e43c | chris | <% end %> |