|
|
@ -13,9 +13,7 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
|
|
|
|
<%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<%= wiki_page_breadcrumb(@page) %>
|
|
|
|
<%= wiki_page_breadcrumb(@page) %>
|
|
|
|
|
|
|
|
|
|
|
|
<% unless @content.current_version? %>
|
|
|
|
<% unless @content.current_version? %>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<%= link_to(("\xc2\xab " + l(:label_previous)),
|
|
|
|
<%= link_to(("\xc2\xab " + l(:label_previous)),
|
|
|
@ -30,27 +28,30 @@
|
|
|
|
:version => @content.next.version) + " - " if @content.next %>
|
|
|
|
:version => @content.next.version) + " - " if @content.next %>
|
|
|
|
<%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
|
|
|
|
<%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
|
|
|
|
<em>
|
|
|
|
%>, <%= format_time(@content.updated_on) %> </em><br />
|
|
|
|
<%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)%>,
|
|
|
|
|
|
|
|
<%= format_time(@content.updated_on) %>
|
|
|
|
|
|
|
|
</em>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<%=h @content.comments %>
|
|
|
|
<%=h @content.comments %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<hr />
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
|
|
|
|
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
|
|
|
|
|
|
|
|
|
|
|
|
<%= link_to_attachments @page %>
|
|
|
|
<%= link_to_attachments @page %>
|
|
|
|
|
|
|
|
|
|
|
|
<% if @editable && authorize_for('wiki', 'add_attachment') %>
|
|
|
|
<% if @editable && authorize_for('wiki', 'add_attachment') %>
|
|
|
|
<div id="wiki_add_attachment">
|
|
|
|
<div id="wiki_add_attachment">
|
|
|
|
<p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
|
|
|
|
:id => 'attach_files_link' %></p>
|
|
|
|
:id => 'attach_files_link' %></p>
|
|
|
|
<%= form_tag({:controller => 'wiki', :action => 'add_attachment',
|
|
|
|
<%= form_tag({:controller => 'wiki', :action => 'add_attachment',
|
|
|
|
:project_id => @project, :id => @page.title},
|
|
|
|
:project_id => @project, :id => @page.title},
|
|
|
|
:multipart => true, :id => "add_attachment_form",
|
|
|
|
:multipart => true, :id => "add_attachment_form",
|
|
|
|
:style => "display:none;") do %>
|
|
|
|
:style => "display:none;") do %>
|
|
|
|
<div class="box">
|
|
|
|
<div class="box">
|
|
|
|
<p><%= render :partial => 'attachments/form' %></p>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_add) %>
|
|
|
|
<%= submit_tag l(:button_add) %>
|
|
|
|
<%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); return false;" %>
|
|
|
|
<%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); return false;" %>
|
|
|
@ -63,9 +64,7 @@
|
|
|
|
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
|
|
|
|
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
|
|
|
|
<%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
|
|
|
|
<%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
|
|
|
|
<% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
|
|
|
<% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
|
|
|
|
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'sidebar' %>
|
|
|
|
<%= render :partial => 'sidebar' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<% html_title @page.pretty_title %>
|
|
|
|
<% html_title @page.pretty_title %>
|
|
|
|