fix archive url (modify incorrectly)
This commit is contained in:
parent
9461aeb279
commit
a595d1611b
|
@ -94,8 +94,6 @@ class ArchivesController < ApplicationController
|
|||
else
|
||||
files_by_cateogry = ArchiveFile.where(:category_id.in => OrbitHelper.widget_categories).with_tags(OrbitHelper.widget_tags).group_by(&:category)
|
||||
end
|
||||
|
||||
|
||||
cats = files_by_cateogry.keys.collect do |cat|
|
||||
files_by_category_tag = files_by_cateogry[cat].group_by(&:tags)
|
||||
|
||||
|
@ -107,7 +105,7 @@ class ArchivesController < ApplicationController
|
|||
files_by_category_tag[t].each_with_index do |archive,index|
|
||||
a = {
|
||||
"archive-title" => archive.title,
|
||||
"archive_url" => OrbitHelper.url_to_show(archive.to_param)
|
||||
"archive_url" => OrbitHelper.widget_more_url
|
||||
}
|
||||
|
||||
if t.count > 1
|
||||
|
|
Loading…
Reference in New Issue