diff --git a/app/views/documents/_document.html.erb b/app/views/documents/_document.html.erb index 4ebbfdf..0ce1ab5 100644 --- a/app/views/documents/_document.html.erb +++ b/app/views/documents/_document.html.erb @@ -39,16 +39,22 @@ <% end %> -
+

<%= render partial: 'shared/meta_info', locals: { email: document.user.email, created_at: document.created_at, updated_at: document.updated_at } %> <%= "| Synced #{time_ago_in_words(document.synced_at)} ago" if document.synced_at.present? %>

+ <% if document.url %> +
+ Related URL: + <%= link_to document.url, document.url, class:"text-sky-500 hover:underline", target:"_source" %> +
+ <% end %> <% if document.source_url %>
- Source: - <%= link_to document.source_url, document.source_url, class:"text-blue-600 underline", target:"_source" %> + Source: + <%= link_to document.source_url, document.source_url, class:"text-sky-500 hover:underline", target:"_source" %> <% if document.source_type == 'quip' %> <%= image_tag 'quip_logo.png', alt: 'Quip Logo', class: 'h-6' %> <%= "text-red-600" if document.last_sync_result == "FAILED" %>">