diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 7839e87..124e77d 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,10 +1,12 @@
-
  • <%= 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 %> -
  • + +<%= link_to "Back to parent" , @document.parent, class: "btn" %> +
    +<%= link_to ff_icon("icon-pencil") + "Edit", write_document_path(@document), class: "btn" %> +<%= link_to ff_icon("icon-refresh")+"Refresh from Etherpad", read_from_etherpad_document_path(@document), class: "btn" if @document.is_etherpad? %> +<%= 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 %> +

    <%= @document.name %>