diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 8da3c05..f194b67 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -46,6 +46,13 @@ class ArchivesController < ApplicationController } end end + if archive.url.present? + files << { + "file-name" => archive.title, + "file-type" => "link", + "file-url" => archive.url + } + end archives << { "archive-title" => archive.title, "description" => archive.description, @@ -102,6 +109,13 @@ class ArchivesController < ApplicationController } end end + if archive.url.present? + files << { + "file-name" => archive.title, + "file-type" => "link", + "file-url" => archive.url + } + end { "archive-title" => archive.title, "description" => archive.description,