add category style boxes with featured topics option
This commit is contained in:
parent
2f90c15d7a
commit
e55f220b33
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue