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