Merge pull request #68 from opf/accessibility/25150/icon-font

[ci skip]
pull/6827/head
Oliver Günther 8 years ago committed by GitHub
commit 6d0974c04b
  1. 2
      app/views/documents/index.html.erb
  2. 4
      app/views/documents/show.html.erb
  3. 2
      app/views/my/blocks/_documents.html.erb
  4. 2
      app/views/my_projects_overviews/blocks/_documents.html.erb
  5. 2
      lib/open_project/documents/engine.rb

@ -39,7 +39,7 @@ See doc/COPYRIGHT.rdoc for more details.
{ class: 'button -alt-highlight', { class: 'button -alt-highlight',
aria: {label: t(:label_document_new)}, aria: {label: t(:label_document_new)},
title: t(:label_document_new)}) do %> title: t(:label_document_new)}) do %>
<i class="button--icon icon-add"></i> <%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= t('activerecord.models.document') %></span> <span class="button--text"><%= t('activerecord.models.document') %></span>
<% end %> <% end %>
</li> </li>

@ -36,14 +36,14 @@ See doc/COPYRIGHT.rdoc for more details.
<% if authorize_for(:documents, :edit) %> <% if authorize_for(:documents, :edit) %>
<li class="toolbar-item"> <li class="toolbar-item">
<%= link_to({controller: '/documents', action: 'edit', id: @document}, class: 'button', accesskey: accesskey(:edit)) do %> <%= link_to({controller: '/documents', action: 'edit', id: @document}, class: 'button', accesskey: accesskey(:edit)) do %>
<i class="button--icon icon-edit"></i> <%= l(:button_edit) %> <%= op_icon('button--icon icon-edit') %> <%= l(:button_edit) %>
<% end %> <% end %>
</li> </li>
<% end %> <% end %>
<% if authorize_for(:documents, :destroy) %> <% if authorize_for(:documents, :destroy) %>
<li class="toolbar-item"> <li class="toolbar-item">
<%= link_to({controller: '/documents', action: 'destroy', id: @document}, class: 'button', data: { confirm: l(:text_are_you_sure) }, method: :delete) do %> <%= link_to({controller: '/documents', action: 'destroy', id: @document}, class: 'button', data: { confirm: l(:text_are_you_sure) }, method: :delete) do %>
<i class="button--icon icon-delete"></i> <%= l(:button_delete) %> <%= op_icon('button--icon icon-delete') %> <%= l(:button_delete) %>
<% end %> <% end %>
</li> </li>
<% end %> <% end %>

@ -35,7 +35,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %> <% end %>
<h3 class="widget-box--header"> <h3 class="widget-box--header">
<span class="icon-context icon-notes"></span> <%= op_icon('icon-context icon-notes') %>
<span class="widget-box--header-title"><%=l(:label_document_plural)%></span> <span class="widget-box--header-title"><%=l(:label_document_plural)%></span>
</h3> </h3>

@ -35,7 +35,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %> <% end %>
<h3 class="widget-box--header"> <h3 class="widget-box--header">
<span class="icon-context icon-notes"></span> <%= op_icon('icon-context icon-notes') %>
<span class="widget-box--header-title"><%=l(:label_document_plural)%></span> <span class="widget-box--header-title"><%=l(:label_document_plural)%></span>
</h3> </h3>

@ -45,7 +45,7 @@ module OpenProject::Documents
{ controller: '/documents', action: 'index' }, { controller: '/documents', action: 'index' },
param: :project_id, param: :project_id,
caption: :label_document_plural, caption: :label_document_plural,
html: { class: 'icon2 icon-notes' } icon: 'icon2 icon-notes'
project_module :documents do |_map| project_module :documents do |_map|
permission :manage_documents, { permission :manage_documents, {

Loading…
Cancel
Save