Add display link in files.
This commit is contained in:
parent
c348b8b782
commit
1d66537799
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue