diff --git a/app/views/documents/_document.html.erb b/app/views/documents/_document.html.erb index 567a483..d66e778 100644 --- a/app/views/documents/_document.html.erb +++ b/app/views/documents/_document.html.erb @@ -5,5 +5,4 @@ <%= link_to document.name, document %> <%= link_to "edit", edit_document_path(document),:remote=>true if can? :edit, document %> - <%= link_to 'Delete', document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, document %> diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 7cf3883..7839e87 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,14 +1,18 @@ +
  • <%= 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"%>
  • +
  • <%= link_to 'Delete', @document, method: :delete, data: { confirm: 'Are you sure?' } , remote: true if can? :delete, @document %> +
  • +

    <%= @document.name %>

    <%= raw(@document.text) %>
    <% if can?(:edit, @document) %> -