Buttons doument show

This commit is contained in:
Andreas Stephanides
2015-01-03 10:49:41 +01:00
parent 0cca373f33
commit aa080a1eec

View File

@@ -1,8 +1,7 @@
<%= link_to "parent" , @document.parent %> <li><%= link_to "Back to parent" , @document.parent %></li>
<%= link_to "show", document_path(@document), remote: true %> <li><%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document) %></li>
<%= link_to "Write", write_document_path(@document) %> <li><%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document) if @document.is_etherpad? %></li>
<%= link_to "read", read_from_etherpad_document_path(@document) %> <li><%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad"%></li>
<%= link_to "dump", dump_to_etherpad_document_path(@document) %>
<h2><%= @document.name %></h2> <h2><%= @document.name %></h2>
<div id=""> <div id="">
<%= raw(@document.text) %> <%= raw(@document.text) %>