##// END OF EJS Templates
Removes test code introduced in r15994....
Jean-Philippe Lang -
r15648:62d45de8349f
parent child
Show More
@@ -1,87 +1,80
1 1 <div class="contextual">
2 <% if @editable && @content.current_version? %>
3 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
4 <% end %>
5 <%= watcher_link(@page, User.current) %>
6 <span class="drdn">
7 <span class="drdn-trigger">Hello</span>
8 <div class="drdn-content drdn-items">
2 <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
3 <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
4 <% end %>
9 5 <% if @editable %>
10 6 <% if @content.current_version? %>
7 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
8 <%= watcher_link(@page, User.current) %>
11 9 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
12 10 <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
13 11 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %>
14 12 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'icon icon-del') %>
15 13 <% else %>
16 14 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') %>
17 15 <% end %>
18 16 <% end %>
19 17 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
20 <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
21 <%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
22 <% end %>
23 </div>
24 </span>
25 18 </div>
26 19
27 20 <%= wiki_page_breadcrumb(@page) %>
28 21
29 22 <% unless @content.current_version? %>
30 23 <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)],
31 24 [l(:label_history), history_project_wiki_page_path(@page.project, @page.title)],
32 25 "#{l(:label_version)} #{@content.version}" %>
33 26
34 27 <p>
35 28 <%= link_to(("\xc2\xab " + l(:label_previous)),
36 29 :action => 'show', :id => @page.title, :project_id => @page.project,
37 30 :version => @content.previous.version) + " - " if @content.previous %>
38 31 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
39 32 <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
40 33 :id => @page.title, :project_id => @page.project,
41 34 :version => @content.version) + ')'.html_safe if @content.previous %> -
42 35 <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
43 36 :id => @page.title, :project_id => @page.project,
44 37 :version => @content.next.version) + " - " if @content.next %>
45 38 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
46 39 <br />
47 40 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
48 41 %>, <%= format_time(@content.updated_on) %> </em><br />
49 42 <%= @content.comments %>
50 43 </p>
51 44 <hr />
52 45 <% end %>
53 46
54 47 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
55 48
56 49 <fieldset class="collapsible collapsed">
57 50 <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %></legend>
58 51 <div style="display: none;">
59 52
60 53 <%= link_to_attachments @page, :thumbnails => true %>
61 54
62 55 <% if @editable && authorize_for('wiki', 'add_attachment') %>
63 56 <div id="wiki_add_attachment">
64 57 <%= form_tag({:controller => 'wiki', :action => 'add_attachment',
65 58 :project_id => @project, :id => @page.title},
66 59 :multipart => true, :id => "add_attachment_form") do %>
67 60 <div class="box">
68 61 <p><%= render :partial => 'attachments/form' %></p>
69 62 </div>
70 63 <%= submit_tag l(:button_add) %>
71 64 <% end %>
72 65 </div>
73 66 <% end %>
74 67 </div>
75 68 </fieldset>
76 69
77 70 <% other_formats_links do |f| %>
78 71 <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>
79 72 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
80 73 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
81 74 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
82 75
83 76 <% content_for :sidebar do %>
84 77 <%= render :partial => 'sidebar' %>
85 78 <% end %>
86 79
87 80 <% html_title @page.pretty_title %>
General Comments 0
You need to be logged in to leave comments. Login now