diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index b757c6e..6b11ff2 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -95,6 +95,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 cf1f405..635b12b 100644 --- a/app/views/admin/announcements/_index.html.erb +++ b/app/views/admin/announcements/_index.html.erb @@ -16,14 +16,28 @@