Skip to content

A platform for community discussion. Free, open, simple.

add category style boxes with featured topics option

Jeff Wonge55f220b3355
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index e3db162fbad..9fa1c0d12e0 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -311,6 +311,7 @@ class CategoriesController < ApplicationController
params[:include_topics] ||
(parent_category && parent_category.subcategory_list_includes_topics?) ||
style == "categories_with_featured_topics".freeze ||
+ style == "categories_boxes_with_topics".freeze ||
style == "categories_with_top_topics".freeze
end
end
diff --git a/app/models/category_page_style.rb b/app/models/category_page_style.rb
index d45376ad1f1..067951d34fb 100644
--- a/app/models/category_page_style.rb
+++ b/app/models/category_page_style.rb
@@ -12,6 +12,7 @@ class CategoryPageStyle < EnumSiteSetting
{ name: 'category_page_style.categories_with_featured_topics', value: 'categories_with_featured_topics' },
{ name: 'category_page_style.categories_and_latest_topics', value: 'categories_and_latest_topics' },
{ name: 'category_page_style.categories_and_top_topics', value: 'categories_and_top_topics' },
+ { name: 'category_page_style.categories_boxes_with_topics', value: 'categories_boxes_with_topics' },
]
end
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 0b43bdf61c7..3a46df40bff 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1282,6 +1282,7 @@ en:
categories_with_featured_topics: "Categories with Featured Topics"
categories_and_latest_topics: "Categories and Latest Topics"
categories_and_top_topics: "Categories and Top Topics"
+ categories_boxes_with_topics: "Boxes with Featured Topics"
shortcut_modifier_key:
shift: 'Shift'