From 95d4a36dbdd4017df983a84e62cd41ec55715e53 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 30 Jun 2021 17:08:38 -0700 Subject: [PATCH] more fixes & polish --- .../display/attribute_value/_tags.html.erb | 4 +-- .../content/list/_document_table.html.erb | 26 +++++++++++-------- app/views/folders/_list.html.erb | 2 +- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/app/views/content/display/attribute_value/_tags.html.erb b/app/views/content/display/attribute_value/_tags.html.erb index aafb7c4f..81fcf41f 100644 --- a/app/views/content/display/attribute_value/_tags.html.erb +++ b/app/views/content/display/attribute_value/_tags.html.erb @@ -11,10 +11,10 @@ slug: PageTagService.slug_for(tag) ) do %> - + <% end %> <% else %> - + <% end %> <% end %> \ No newline at end of file diff --git a/app/views/content/list/_document_table.html.erb b/app/views/content/list/_document_table.html.erb index 282b53b5..4bf40f97 100644 --- a/app/views/content/list/_document_table.html.erb +++ b/app/views/content/list/_document_table.html.erb @@ -181,18 +181,22 @@ last updated <%= time_ago_in_words document.updated_at %> ago <% end %> +
  • + <%= link_to document_document_revisions_path(document) do %> + content_copy + View revision log + <% end %> +
  • +
  • + <%= link_to plaintext_document_path(document), target: '_blank' do %> + title + View in plaintext + <% end %> +
  • - - -
    +
    <% if current_user.can_update?(document) %>
    Document synopsis
    @@ -260,13 +264,13 @@ <% end %> <% end %> <% if current_user.can_update?(document) %> - <%= link_to edit_polymorphic_path(document), class: 'green white-text btn hoverable', target: document.is_a?(Document) ? '_new' : '_self' do %> + <%= link_to edit_polymorphic_path(document), class: 'green white-text btn hoverable', target: document.is_a?(Document) ? '_blank' : '_self' do %> <%= content_type.icon %> Edit <% end %> <% end %> <% if current_user.can_update?(document) %> - <%= link_to analysis_document_path(document), class: 'orange white-text btn left hoverable', target: document.is_a?(Document) ? '_new' : '_self' do %> + <%= link_to analysis_document_path(document), class: 'orange white-text btn left hoverable', target: document.is_a?(Document) ? '_blank' : '_self' do %> bar_chart Analyze <% end %> diff --git a/app/views/folders/_list.html.erb b/app/views/folders/_list.html.erb index 0708df0b..aa734567 100644 --- a/app/views/folders/_list.html.erb +++ b/app/views/folders/_list.html.erb @@ -1,7 +1,7 @@ <% if folders.any? %>
    -
    +
    <%= link_to '#new-folder-modal', class: "btn right #{Folder.color} lighten-1 white-text modal-trigger" do %> create_new_folder New folder