|
|
@ -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 %> |
|
|
|