allways show version buttons when watching a version - even the current one

pull/4804/head
Jens Ulferts 8 years ago
parent 36c785b7c8
commit c4dd6477dc
  1. 4
      app/views/wiki/show.html.erb

@ -87,7 +87,8 @@ See doc/COPYRIGHT.rdoc for more details.
<% breadcrumb_paths(*(@page.ancestors.reverse.collect {|parent| link_to h(parent.breadcrumb_title), {id: parent, project_id: parent.project}} + [h(@page.breadcrumb_title)])) %>
<% if @content.version != @page.content.version %>
<% if params[:version] %>
<hr />
<div class="wiki-version--details">
<div>
@ -99,6 +100,7 @@ See doc/COPYRIGHT.rdoc for more details.
<hr />
</div>
<% end %>
<%= render(partial: "wiki/content", locals: {content: @content}) %>
<%= link_to_attachments @page %>
<% if @editable && authorize_for('wiki', 'add_attachment') %>

Loading…
Cancel
Save