fix error

This commit is contained in:
邱博亞 2021-11-17 17:07:08 +08:00
parent df61683f93
commit a89ec48c1b
1 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ class AnnouncementsController < ApplicationController
"<div style=\"clear: both;\"></div>" +
"<ul class=\"nav_tabs_filter\">" +
(use_tag ? tags.map.with_index{|tag,i|
read_more_url = "/#{page_url}" rescue ""
read_more_url = "#{page_url}" rescue ""
read_more_url = read_more_url + "?" + {"category"=>all_cats,"tags"=>(tag == 'all' ? all_tags : [tag])}.to_param if read_more_url != ""
read_more_text = I18n.t("announcement.more")
if tag != "all"
@ -231,7 +231,7 @@ class AnnouncementsController < ApplicationController
end
"<li class=\"filter_tab#{i == 0 ? ' active' : ''}\" #{(tag == 'all' && @all_setting_option == 0) ? "data-count_limit=\"#{max_all_count}\"" : ''} data-read_more_text=\"#{read_more_text}\" data-read_more=\"#{read_more_url}\" data-tags=\"#{tag}\">#{tags_translations[tag]}</li>"
}.join("") : cats.map.with_index{|cat,i|
read_more_url = "/#{page_url}" rescue ""
read_more_url = "#{page_url}" rescue ""
read_more_url = read_more_url + "?" + {"category"=>(cat == 'all' ? all_cats : cat)}.to_param if read_more_url != ""
read_more_text = I18n.t("announcement.more")
if cat != "all"
@ -374,7 +374,7 @@ class AnnouncementsController < ApplicationController
"
end
if @tab_option == 0
read_more_url = "/#{page_url}" rescue ""
read_more_url = "#{page_url}" rescue ""
read_more_url = read_more_url + "?" + {"category"=>all_cats,"tags"=>all_tags}.to_param if read_more_url != ""
extra_after_html += "
<script style=\"display:none\">