show.rhtml
49 lines
| 2.9 KiB
| text/html+ruby
|
RhtmlLexer
|
r330 | <div class="contextual"> | ||
|
r793 | <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> | ||
|
r709 | <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> | ||
|
r537 | <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> | ||
|
r663 | <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> | ||
|
r330 | <%= link_to(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %> | ||
</div> | ||||
<% if @content.version != @page.content.version %> | ||||
<p> | ||||
<%= link_to(('« ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %> | ||||
|
r580 | <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> | ||
<%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :page => @page.title, :version => @content.version) + ')' if @content.version > 1 %> - | ||||
|
r330 | <%= link_to((l(:label_next) + ' »'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %> | ||
<%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %> | ||||
<br /> | ||||
<em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br /> | ||||
|
r476 | <%=h @content.comments %> | ||
|
r330 | </p> | ||
<hr /> | ||||
<% end %> | ||||
|
r561 | <%= render(:partial => "wiki/content", :locals => {:content => @content}) %> | ||
|
r330 | |||
|
r538 | <%= link_to_attachments @page.attachments, :delete_url => (authorize_for('wiki', 'destroy_attachment') ? {:controller => 'wiki', :action => 'destroy_attachment', :page => @page.title} : nil) %> | ||
|
r330 | <div class="contextual"> | ||
<%= l(:label_export_to) %> | ||||
|
r709 | <%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'icon icon-html' %>, | ||
<%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %> | ||||
|
r538 | </div> | ||
<% if authorize_for('wiki', 'add_attachment') %> | ||||
<p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> | ||||
<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> | ||||
<%= render :partial => 'attachments/form' %> | ||||
<%= submit_tag l(:button_add) %> | ||||
<% end %> | ||||
<% end %> | ||||
|
r699 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag 'scm' %> | ||||
<% end %> | ||||
|
r704 | |||
|
r736 | <% content_for :sidebar do %> | ||
<%= render :partial => 'sidebar' %> | ||||
<% end %> | ||||
|
r704 | <% set_html_title @page.pretty_title %> | ||