Update archives_controller.rb
This commit is contained in:
parent
bd1f928c28
commit
4de57fb675
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue