diff options
Diffstat (limited to 'app/views/wiki')
-rw-r--r-- | app/views/wiki/_sidebar.rhtml | 5 | ||||
-rw-r--r-- | app/views/wiki/special_date_index.rhtml | 25 | ||||
-rw-r--r-- | app/views/wiki/special_page_index.rhtml | 24 |
3 files changed, 44 insertions, 10 deletions
diff --git a/app/views/wiki/_sidebar.rhtml b/app/views/wiki/_sidebar.rhtml index b45aa7233..20c087123 100644 --- a/app/views/wiki/_sidebar.rhtml +++ b/app/views/wiki/_sidebar.rhtml @@ -1,4 +1,5 @@ <h3><%= l(:label_wiki) %></h3> -<%= link_to l(:label_page_index), {:action => 'special', :page => 'Page_index'} %> - +<%= link_to l(:field_start_page), {:action => 'index', :page => nil} %><br /> +<%= link_to l(:label_index_by_title), {:action => 'special', :page => 'Page_index'} %><br /> +<%= link_to l(:label_index_by_date), {:action => 'special', :page => 'Date_index'} %><br /> diff --git a/app/views/wiki/special_date_index.rhtml b/app/views/wiki/special_date_index.rhtml new file mode 100644 index 000000000..ac68f809e --- /dev/null +++ b/app/views/wiki/special_date_index.rhtml @@ -0,0 +1,25 @@ +<h2><%= l(:label_index_by_date) %></h2> + +<% if @pages.empty? %> +<p class="nodata"><%= l(:label_no_data) %></p> +<% end %> + +<% @pages_by_date.keys.sort.reverse.each do |date| %> +<h3><%= format_date(date) %></h3> +<ul> +<% @pages_by_date[date].each do |page| %> + <li><%= link_to page.pretty_title, :action => 'index', :page => page.title %></li> +<% end %> +</ul> +<% end %> + +<% content_for :sidebar do %> + <%= render :partial => 'sidebar' %> +<% end %> + +<div class="contextual"> +<% unless @pages.empty? %> +<%= l(:label_export_to) %> <%= link_to 'HTML', {:action => 'special', :page => 'export'}, :class => 'icon icon-html' %> +<% end %> +</div> + diff --git a/app/views/wiki/special_page_index.rhtml b/app/views/wiki/special_page_index.rhtml index ba3cfeed1..8d3cd8a42 100644 --- a/app/views/wiki/special_page_index.rhtml +++ b/app/views/wiki/special_page_index.rhtml @@ -1,13 +1,21 @@ -<div class="contextual"> -<% unless @pages.empty? %> -<%= l(:label_export_to) %> <%= link_to 'HTML', {:action => 'special', :page => 'export'}, :class => 'icon icon-html' %> -<% end %> -</div> +<h2><%= l(:label_index_by_title) %></h2> -<h2><%= l(:label_page_index) %></h2> +<% if @pages.empty? %> +<p class="nodata"><%= l(:label_no_data) %></p> +<% end %> -<% if @pages.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %> <ul><% @pages.each do |page| %> <li><%= link_to page.pretty_title, :action => 'index', :page => page.title %> - <%= l(:label_last_updates) %>: <%= format_time(page.updated_on) %></li> -<% end %></ul>
\ No newline at end of file +<% end %></ul> + +<% content_for :sidebar do %> + <%= render :partial => 'sidebar' %> +<% end %> + +<div class="contextual"> +<% unless @pages.empty? %> +<%= l(:label_export_to) %> <%= link_to 'HTML', {:action => 'special', :page => 'export'}, :class => 'icon icon-html' %> +<% end %> +</div> + |