diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index de22fd5..8939bf0 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,8 +1,7 @@ -<%= link_to "parent" , @document.parent %> -<%= link_to "show", document_path(@document), remote: true %> -<%= link_to "Write", write_document_path(@document) %> -<%= link_to "read", read_from_etherpad_document_path(@document) %> -<%= link_to "dump", dump_to_etherpad_document_path(@document) %> +
  • <%= 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) %>