add category style boxes with featured topics option

This commit is contained in:
Jeff Wong 2018-10-08 15:42:09 -07:00
parent 2f90c15d7a
commit e55f220b33
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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'