documents show toolbar

This commit is contained in:
Andreas Stephanides
2015-03-15 19:49:18 +01:00
parent 27d478281e
commit 76c0565a7c

View File

@@ -1,10 +1,12 @@
<div class="hidden-print"> <div class="hidden-print">
<li><%= link_to "Back to parent" , @document.parent %></li>
<li><%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document) %></li> <%= link_to "Back to parent" , @document.parent, class: "btn" %>
<li><%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document) if @document.is_etherpad? %></li> <div class="btn-group">
<li><%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad"%></li> <%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document), class: "btn" %>
<li> <%= link_to 'Delete', @document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, @document %> <%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document), class: "btn" if @document.is_etherpad? %>
</li> <%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad" , class: "btn" %>
<%= link_to 'Delete', @document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true, class: "btn btn-danger" if can? :delete, @document %>
</div>
</div> </div>
<h2><%= @document.name %></h2> <h2><%= @document.name %></h2>
<div id=""> <div id="">