Update archives_controller.rb

This commit is contained in:
Harry Bomrah 2019-03-06 18:31:13 +08:00
parent bd1f928c28
commit 4de57fb675
1 changed files with 3 additions and 0 deletions

View File

@ -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