special_page_index.rhtml
22 lines
| 667 B
| text/html+ruby
|
RhtmlLexer
|
r757 | <h2><%= l(:label_index_by_title) %></h2> | ||
|
r330 | |||
|
r757 | <% if @pages.empty? %> | ||
<p class="nodata"><%= l(:label_no_data) %></p> | ||||
<% end %> | ||||
|
r330 | |||
<ul><% @pages.each do |page| %> | ||||
|
r762 | <li><%= link_to page.pretty_title, {:action => 'index', :page => page.title}, | ||
:title => l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) %> | ||||
</li> | ||||
|
r757 | <% 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> | ||||
| ||||