From 4de57fb6758e8782eca463c5c10a264a5854ce4d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Mar 2019 18:31:13 +0800 Subject: [PATCH] Update archives_controller.rb --- app/controllers/archives_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 9d464b2..1f3f266 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -33,6 +33,7 @@ class ArchivesController < ApplicationController end { "archive-title" => archive.title, + "archive-url" => archive.url, "url" => archive.url, "statuses" => statuses, "sort_number" => archive.sort_number, @@ -82,6 +83,7 @@ class ArchivesController < ApplicationController files_by_category_tag[t].each_with_index do |archive,index| a = { "archive-title" => archive.title, + "archive-url" => archive.url, "archive_url" => OrbitHelper.widget_more_url } @@ -140,6 +142,7 @@ class ArchivesController < ApplicationController url = archive.archive_file_multiples.count > 1 ? OrbitHelper.widget_more_url : "/xhr/archive/download?file=#{archive.archive_file_multiples.first.id}" { "archive-title" => archive.title, + "archive-url" => archive.url, "archive_url" => url } end