From c49b5973b4907cfd0513885f0805f2f18ce05ce8 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 15 Sep 2016 15:15:57 +0200 Subject: [PATCH] Remove obselete info from add button --- app/views/documents/index.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb index 40e2b1b4f2..ef6e711f46 100644 --- a/app/views/documents/index.html.erb +++ b/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) %>
  • - <%= link_to({:controller => '/documents', :action => 'new', :project_id => @project}, class: 'button -alt-highlight') do %> - <%= 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 %> + + <%= t('activerecord.models.document') %> <% end %>
  • <% end %>