diff --git a/app/views/documents/show.html.erb b/app/views/documents/show.html.erb index 5159f85..0e5705d 100644 --- a/app/views/documents/show.html.erb +++ b/app/views/documents/show.html.erb @@ -1,11 +1,11 @@
<%= link_to "Back to parent" , @document.parent, class: "btn" %>
-<%= link_to "PDF", document_path(@document, :format=>"pdf"),class: "btn" %> -<%= link_to "sanitize", document_path(@document),class: "btn" if can? :sanitize, @document %> +<%= link_to fa_icon('file-pdf-o')+" PDF", document_path(@document, :format=>"pdf"),class: "btn" %> +<%= link_to "sanitize", sanitize_document_path(@document),class: "btn" if can? :sanitize, @document %> -<%= 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 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 %>