##// END OF EJS Templates
Fixed 'export to' links positioning on wiki page....
Jean-Philippe Lang -
r1010:3ff95e403134
parent child
Show More
@@ -1,49 +1,50
1 1 <div class="contextual">
2 2 <%= 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 %>
3 3 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %>
4 4 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
5 5 <%= 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 %>
6 6 <%= link_to(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %>
7 7 </div>
8 8
9 9 <% if @content.version != @page.content.version %>
10 10 <p>
11 11 <%= link_to(('&#171; ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %>
12 12 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
13 13 <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :page => @page.title, :version => @content.version) + ')' if @content.version > 1 %> -
14 14 <%= link_to((l(:label_next) + ' &#187;'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>
15 15 <%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %>
16 16 <br />
17 17 <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
18 18 <%=h @content.comments %>
19 19 </p>
20 20 <hr />
21 21 <% end %>
22 22
23 23 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
24 24
25 25 <%= link_to_attachments @page.attachments, :delete_url => (authorize_for('wiki', 'destroy_attachment') ? {:controller => 'wiki', :action => 'destroy_attachment', :page => @page.title} : nil) %>
26 26
27 <div class="contextual">
28 <%= l(:label_export_to) %>
29 <%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'icon icon-html' %>,
30 <%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
31 </div>
32
33 27 <% if authorize_for('wiki', 'add_attachment') %>
34 28 <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p>
35 29 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %>
36 30 <%= render :partial => 'attachments/form' %>
37 31 <%= submit_tag l(:button_add) %>
38 32 <% end %>
39 33 <% end %>
40 34
35 <div class="contextual">
36 <%= l(:label_export_to) %>
37 <%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'icon icon-html' %>,
38 <%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %>
39 </div>
40 &nbsp;
41
41 42 <% content_for :header_tags do %>
42 43 <%= stylesheet_link_tag 'scm' %>
43 44 <% end %>
44 45
45 46 <% content_for :sidebar do %>
46 47 <%= render :partial => 'sidebar' %>
47 48 <% end %>
48 49
49 50 <% set_html_title @page.pretty_title %>
General Comments 0
You need to be logged in to leave comments. Login now