Merge pull request #64 from HDinger/fix/23980-add-buttons-are-not-consistently-used

[23980] Add buttons are not consistently used (Documents)
pull/6827/head
Henriette Dinger 8 years ago committed by GitHub
commit 8639fd5778
  1. 8
      app/views/documents/index.html.erb

@ -35,8 +35,12 @@ See doc/COPYRIGHT.rdoc for more details.
<%= toolbar title: l(:label_document_plural) do %>
<% if authorize_for(:documents, :new) %>
<li class="toolbar-item">
<%= link_to({:controller => '/documents', :action => 'new', :project_id => @project}, class: 'button -alt-highlight') do %>
<i class="button--icon icon-add"></i> <%= l(:label_document_new) %>
<%= link_to({:controller => '/documents', :action => 'new', :project_id => @project},
{ class: 'button -alt-highlight',
aria: {label: t(:label_document_new)},
title: t(:label_document_new)}) do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= t('activerecord.models.document') %></span>
<% end %>
</li>
<% end %>

Loading…
Cancel
Save