Edit page title for tags.
This commit is contained in:
1 parent
d0331d58c1
commit
1d76ff87b7
1 file changed
+3
-1
@@ -72,7 +72,9 @@ class AnnouncementsController < ApplicationController
|
||||
if (params['category'] != page.categories rescue true)
|
||||
@annc_page_title = Category.find(Array(params['category']).first).title rescue nil
|
||||
end
|
||||
print params['category']
|
||||
if (params["tags"] != page.tags rescue true)
|
||||
@annc_page_title = Tag.find(Array(params['tags']).first).name rescue nil
|
||||
end
|
||||
{
|
||||
"announcements" => anns,
|
||||
"extras" => {
|
||||
|
||||
Reference in new issue
Block a user