attachment new version
This commit is contained in:
@@ -4,5 +4,5 @@
|
||||
<%= fa_icon("file-text") %>
|
||||
<%= link_to document.name, document %>
|
||||
|
||||
<%= link_to "edit", edit_document_path(document),:remote=>true if can? :edit, document %>
|
||||
<%= link_to "rename", edit_document_path(document),:remote=>true if can? :edit, document %>
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,10 @@
|
||||
<ul class='breadcrumb hidden-print'>
|
||||
<% @document.versions.each do |v| %>
|
||||
<li>
|
||||
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) %>
|
||||
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) unless v.whodunnit.nil? %>
|
||||
<% end %> <span class="divider">/</span></li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
|
||||
<%= render_attachments_for(@document) %>
|
||||
|
||||
Reference in New Issue
Block a user