##// END OF EJS Templates
HTML escape at app/views/wiki/show.rhtml....
Toshi MARUYAMA -
r6273:0c2958dbdac8
parent child
Show More
@@ -1,61 +1,61
1 1 <div class="contextual">
2 2 <% if @editable %>
3 3 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %>
4 4 <%= watcher_tag(@page, User.current) %>
5 5 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
6 6 <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
7 7 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %>
8 8 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
9 9 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %>
10 10 <% end %>
11 11 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
12 12 </div>
13 13
14 14 <%= wiki_page_breadcrumb(@page) %>
15 15
16 16 <% if @content.version != @page.content.version %>
17 17 <p>
18 18 <%= link_to(('&#171; ' + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version - 1)) + " - " if @content.version > 1 %>
19 19 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
20 20 <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, :version => @content.version) + ')' if @content.version > 1 %> -
21 21 <%= link_to((l(:label_next) + ' &#187;'), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>
22 22 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project) %>
23 23 <br />
24 <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
24 <em><%= @content.author ? link_to_user(@content.author) : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
25 25 <%=h @content.comments %>
26 26 </p>
27 27 <hr />
28 28 <% end %>
29 29
30 30 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
31 31
32 32 <%= link_to_attachments @page %>
33 33
34 34 <% if @editable && authorize_for('wiki', 'add_attachment') %>
35 35 <div id="wiki_add_attachment">
36 36 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
37 37 :id => 'attach_files_link' %></p>
38 38 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :project_id => @project, :id => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
39 39 <div class="box">
40 40 <p><%= render :partial => 'attachments/form' %></p>
41 41 </div>
42 42 <%= submit_tag l(:button_add) %>
43 43 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %>
44 44 <% end %>
45 45 </div>
46 46 <% end %>
47 47
48 48 <% other_formats_links do |f| %>
49 49 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %>
50 50 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %>
51 51 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
52 52
53 53 <% content_for :header_tags do %>
54 54 <%= stylesheet_link_tag 'scm' %>
55 55 <% end %>
56 56
57 57 <% content_for :sidebar do %>
58 58 <%= render :partial => 'sidebar' %>
59 59 <% end %>
60 60
61 <% html_title @page.pretty_title %>
61 <% html_title h(@page.pretty_title) %>
General Comments 0
You need to be logged in to leave comments. Login now