diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index ebd2ece..8bdbd72 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -82,6 +82,8 @@ class AnnouncementsController < ApplicationController return {} end + return {} if announcement.category.disable + tags = announcement.tags.map{|tag| { "tag" => tag.name , "url" => OrbitHelper.page_for_tag(tag) diff --git a/app/views/admin/announcements/_index.html.erb b/app/views/admin/announcements/_index.html.erb index b321dd3..dca66ce 100644 --- a/app/views/admin/announcements/_index.html.erb +++ b/app/views/admin/announcements/_index.html.erb @@ -16,14 +16,28 @@