From 08d02a8591ee8047cb708646092cd4bdb7492c33 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 19 Jul 2026 22:19:22 +0200 Subject: Add copy-url button to assets; unified the mechanism across views --- app/views/assets/show.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/views/assets') diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb index 5717dd99..ff00883c 100644 --- a/app/views/assets/show.html.erb +++ b/app/views/assets/show.html.erb @@ -20,7 +20,15 @@
<%= image_tag @asset.upload.url(:medium), style: "max-width: 300px; max-height: 300px;" %>
Public Path
-
<%= @asset.upload.url.sub(/\?\d+$/, "") %>
+
+ <% public_path = @asset.upload.url.sub(/\?\d+$/, "") %> + <%= link_to public_path, public_path, target: "_blank", rel: "noopener" %> + +
Content Type
<%= @asset.upload.content_type %>
-- cgit v1.3