OSDN Git Service

added svn:eol-style native property on /app files
[redminele/redmine.git] / app / views / wiki / show.rhtml
1 <div class="contextual">
2 <%= link_to(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit') if @content.version == @page.content.version %>
3 <%= link_to(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %>
4 <%= link_to(l(:label_page_index), {:action => 'special', :page => 'Page_index'}, :class => 'icon icon-index') %>
5 </div>
6
7 <% if @content.version != @page.content.version %>
8     <p>    
9     <%= link_to(('&#171; ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %>
10     <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}"  %> - 
11     <%= link_to((l(:label_next) + ' &#187;'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>
12     <%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %>
13     <br />
14     <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
15     <%=h @content.comment %>
16     </p>
17     <hr />
18 <% end %>
19
20 <div class="wiki">
21 <% cache "wiki/show/#{@page.id}/#{@content.version}" do %>
22 <%= textilizable @content.text %>
23 <% end %>
24 </div>
25
26 <div class="contextual">
27 <%= l(:label_export_to) %>
28 <%= link_to 'HTML', {:export => 'html', :version => @content.version}, :class => 'icon icon-html' %>,
29 <%= link_to 'TXT', {:export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
30 </div>