<%= link_to "Back to parent" , @document.parent %>
<%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document) %>
<%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document) if @document.is_etherpad? %>
<%= link_to "Copy Document to Etherpad", dump_to_etherpad_document_path(@document) , confirm: "Sicher? Löscht alle Änderungen im Etherpad"%>
<%= @document.name %>
<%= raw(@document.text) %>
<% if can?(:edit, @document) %>
<% @document.versions.each do |v| %>
-
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) %>
<% end %> /
<% end %>