From 19fde883d78ba8242092e12eb2a5c4fa1ead07f5 Mon Sep 17 00:00:00 2001 From: tomya-n Date: Sat, 26 Oct 2024 00:38:44 +0900 Subject: [PATCH 1/3] =?UTF-8?q?show.html.erb=20#77=20=E3=83=80=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=83=AA=E3=83=B3=E3=82=AF?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/archives/show.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/archives/show.html.erb b/app/views/archives/show.html.erb index 91c5d3d..279a075 100644 --- a/app/views/archives/show.html.erb +++ b/app/views/archives/show.html.erb @@ -18,6 +18,9 @@
追加日: <%= @archive.created_at.in_time_zone('Tokyo').strftime('%Y-%m-%d %H:%M') %>
状態: <%= @archive.status %>
+
+ <%= link_to("ダウンロード", @archive.video, download: @archive.title ) %> +

ログ

From e7d0facff361e996b0e6e0e889d1939eb2caad9f Mon Sep 17 00:00:00 2001 From: tomya-n Date: Sun, 27 Oct 2024 15:11:55 +0900 Subject: [PATCH 2/3] =?UTF-8?q?show.html.erb=20#77=20=E3=83=80=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=83=AA=E3=83=B3=E3=82=AF?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/archives/show.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/archives/show.html.erb b/app/views/archives/show.html.erb index 279a075..28229c7 100644 --- a/app/views/archives/show.html.erb +++ b/app/views/archives/show.html.erb @@ -18,9 +18,11 @@
追加日: <%= @archive.created_at.in_time_zone('Tokyo').strftime('%Y-%m-%d %H:%M') %>
状態: <%= @archive.status %>
+ <% if @archive.video.attached? %>
- <%= link_to("ダウンロード", @archive.video, download: @archive.title ) %> + <%= link_to("ダウンロード", @archive.video, download: sanitize_filename(@archive.title)) %>
+ <% end %>

ログ

From e97249fd18f28dea8f28ca4c7ac71c5d6a5a5f6c Mon Sep 17 00:00:00 2001 From: tomya-n Date: Sat, 2 Nov 2024 21:34:47 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=82=84=E3=81=A3=E3=81=B1=E3=81=93?= =?UTF-8?q?=E3=82=8C=E3=81=A7=E5=8B=95=E3=81=84=E3=81=9F=20#77?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/archives/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/archives/show.html.erb b/app/views/archives/show.html.erb index 28229c7..0e470d6 100644 --- a/app/views/archives/show.html.erb +++ b/app/views/archives/show.html.erb @@ -20,7 +20,7 @@
<% if @archive.video.attached? %>
- <%= link_to("ダウンロード", @archive.video, download: sanitize_filename(@archive.title)) %> + <%= link_to("ダウンロード", @archive.video, download: @archive.title) %>
<% end %>