annotate app/views/wiki/date_index.html.erb @ 1452:d6b9fd02bb89
feature_36_js_refactoring
Deprecated develoment branch.
author |
luisf <luis.figueira@eecs.qmul.ac.uk> |
date |
Fri, 11 Oct 2013 17:01:24 +0100 |
parents |
cbce1fd3b1b7 |
children |
cbb26bc654de |
rev |
line source |
chris@37
|
1 <div class="contextual">
|
chris@37
|
2 <%= watcher_tag(@wiki, User.current) %>
|
chris@37
|
3 </div>
|
chris@37
|
4
|
chris@37
|
5 <h2><%= l(:label_index_by_date) %></h2>
|
chris@37
|
6
|
chris@37
|
7 <% if @pages.empty? %>
|
chris@37
|
8 <p class="nodata"><%= l(:label_no_data) %></p>
|
chris@37
|
9 <% end %>
|
chris@37
|
10
|
chris@37
|
11 <% @pages_by_date.keys.sort.reverse.each do |date| %>
|
chris@37
|
12 <h3><%= format_date(date) %></h3>
|
chris@37
|
13 <ul>
|
chris@37
|
14 <% @pages_by_date[date].each do |page| %>
|
chris@37
|
15 <li><%= link_to page.pretty_title, :action => 'show', :id => page.title, :project_id => page.project %></li>
|
chris@37
|
16 <% end %>
|
chris@37
|
17 </ul>
|
chris@37
|
18 <% end %>
|
chris@37
|
19
|
chris@37
|
20 <% content_for :sidebar do %>
|
chris@37
|
21 <%= render :partial => 'sidebar' %>
|
chris@37
|
22 <% end %>
|
chris@37
|
23
|
chris@37
|
24 <% unless @pages.empty? %>
|
chris@37
|
25 <% other_formats_links do |f| %>
|
Chris@441
|
26 <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :key => User.current.rss_key} %>
|
chris@37
|
27 <%= f.link_to('HTML', :url => {:action => 'export'}) if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
chris@37
|
28 <% end %>
|
chris@37
|
29 <% end %>
|
chris@37
|
30
|
chris@37
|
31 <% content_for :header_tags do %>
|
Chris@441
|
32 <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :id => @project, :show_wiki_edits => 1, :format => 'atom', :key => User.current.rss_key) %>
|
chris@37
|
33 <% end %>
|