|
|
@ -30,15 +30,24 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
|
|
|
|
|
|
|
++#%> |
|
|
|
++#%> |
|
|
|
|
|
|
|
|
|
|
|
<div class="contextual"> |
|
|
|
<% html_title h(@document.title) -%> |
|
|
|
<%= link_to_if_authorized l(:button_edit), {:controller => '/documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> |
|
|
|
<%= toolbar title: h(@document.title), subtitle: "#{h @document.category.name} - #{format_date @document.created_on}" do %> |
|
|
|
<%= link_to_if_authorized l(:button_delete), {:controller => '/documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-delete' %> |
|
|
|
<% if authorize_for(:documents, :edit) %> |
|
|
|
</div> |
|
|
|
<li class="toolbar-item"> |
|
|
|
|
|
|
|
<%= link_to({:controller => '/documents', :action => 'edit', :id => @document}, class: 'button', accesskey: accesskey(:edit)) do %> |
|
|
|
<h2><%=h @document.title %></h2> |
|
|
|
<i class="button--icon icon-edit"></i> <%= l(:button_edit) %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% if authorize_for(:documents, :destroy) %> |
|
|
|
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
|
|
|
<%= 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) %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<p><em><%=h @document.category.name %><br /> |
|
|
|
|
|
|
|
<%= format_date @document.created_on %></em></p> |
|
|
|
|
|
|
|
<div class="wiki"> |
|
|
|
<div class="wiki"> |
|
|
|
<%= textilizable @document.description, :attachments => @document.attachments %> |
|
|
|
<%= textilizable @document.description, :attachments => @document.attachments %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -57,4 +66,3 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<% html_title h(@document.title) -%> |
|
|
|
|
|
|
|