Merge pull request #4788 from HDinger/fix/23801-toolbar-layout-not-applied-in-wiki-history

[23801] Toolbar layout not applied in wiki history
pull/4794/head
Oliver Günther 8 years ago committed by GitHub
commit 7a1b5c6125
  1. 22
      app/views/wiki/annotate.html.erb
  2. 13
      app/views/wiki/diff.html.erb

@ -29,15 +29,21 @@ See doc/COPYRIGHT.rdoc for more details.
<% html_title t(:project_module_wiki), t(:label_history), t(:text_comment_wiki_page, page: @page.title) %> <% html_title t(:project_module_wiki), t(:label_history), t(:text_comment_wiki_page, page: @page.title) %>
<% content_for :action_menu_specific do %> <%= toolbar title: h(@page.title) do %>
<%= link_to(t(:button_edit), <li class="toolbar-item">
{action: 'edit', id: @page}, <%= link_to({action: 'edit', id: @page}, class: 'button', accesskey: accesskey(:edit)) do %>
class: 'icon icon-edit', <i class="button--icon icon-edit"></i>
accesskey: accesskey(:edit)) %> <span class="button--text"><%= t(:button_edit) %></span>
<%= link_to(t(:label_history), {action: 'history', id: @page}, class: 'icon icon-wiki') %> <% end %>
</li>
<li class="toolbar-item">
<%= link_to({action: 'history', id: @page}, class: 'button') do %>
<i class="button--icon icon-wiki"></i>
<span class="button--text"><%= t(:label_history) %></span>
<% end %>
</li>
<% end %> <% end %>
<h2 class='legacy-heading'><%= h(@page.title) %></h2>
<%= render partial: 'layouts/action_menu_specific' %>
<p> <p>
<%= Version.model_name.human %> <%= link_to h(@annotate.content.version), action: 'show', id: @page, version: @annotate.content.version %> <%= Version.model_name.human %> <%= link_to h(@annotate.content.version), action: 'show', id: @page, version: @annotate.content.version %>
<em>(<%= h(@annotate.content.journable.author ? @annotate.content.journable.author.name : t(:label_user_anonymous)) %>, <%= format_time(@annotate.content.journable.updated_on) %>)</em> <em>(<%= h(@annotate.content.journable.author ? @annotate.content.journable.author.name : t(:label_user_anonymous)) %>, <%= format_time(@annotate.content.journable.updated_on) %>)</em>

@ -26,12 +26,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See doc/COPYRIGHT.rdoc for more details. See doc/COPYRIGHT.rdoc for more details.
++#%> ++#%>
<%= toolbar title: h(@page.title) do %>
<% content_for :action_menu_specific do %> <li class="toolbar-item">
<%= link_to(l(:label_history), {action: 'history', id: @page}, class: 'icon icon-wiki') %> <%= link_to({action: 'history', id: @page}, class: 'button') do %>
<i class="button--icon icon-wiki"></i>
<span class="button--text"><%= t(:label_history) %></span>
<% end %>
</li>
<% end %> <% end %>
<h2 class="legacy-heading"><%= h(@page.title) %></h2>
<%= render partial: 'layouts/action_menu_specific' %>
<p> <p>
<%= Version.model_name.human %> <%= link_to @diff.content_from.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_from.version %>/<%= @page.content.version %> <%= Version.model_name.human %> <%= link_to @diff.content_from.version, action: 'show', id: @page, project_id: @page.project, version: @diff.content_from.version %>/<%= @page.content.version %>
<em>(<%= @diff.content_from.user ? link_to_user(@diff.content_from.user) : l(:label_user_anonymous) %>, <%= format_time(@diff.content_from.created_at) %>)</em> <em>(<%= @diff.content_from.user ? link_to_user(@diff.content_from.user) : l(:label_user_anonymous) %>, <%= format_time(@diff.content_from.created_at) %>)</em>

Loading…
Cancel
Save