mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 22:24:53 +08:00
add category style boxes with featured topics option
This commit is contained in:
@ -311,6 +311,7 @@ class CategoriesController < ApplicationController
|
|||||||
params[:include_topics] ||
|
params[:include_topics] ||
|
||||||
(parent_category && parent_category.subcategory_list_includes_topics?) ||
|
(parent_category && parent_category.subcategory_list_includes_topics?) ||
|
||||||
style == "categories_with_featured_topics".freeze ||
|
style == "categories_with_featured_topics".freeze ||
|
||||||
|
style == "categories_boxes_with_topics".freeze ||
|
||||||
style == "categories_with_top_topics".freeze
|
style == "categories_with_top_topics".freeze
|
||||||
end
|
end
|
||||||
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_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_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_and_top_topics', value: 'categories_and_top_topics' },
|
||||||
|
{ name: 'category_page_style.categories_boxes_with_topics', value: 'categories_boxes_with_topics' },
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1282,6 +1282,7 @@ en:
|
|||||||
categories_with_featured_topics: "Categories with Featured Topics"
|
categories_with_featured_topics: "Categories with Featured Topics"
|
||||||
categories_and_latest_topics: "Categories and Latest Topics"
|
categories_and_latest_topics: "Categories and Latest Topics"
|
||||||
categories_and_top_topics: "Categories and Top Topics"
|
categories_and_top_topics: "Categories and Top Topics"
|
||||||
|
categories_boxes_with_topics: "Boxes with Featured Topics"
|
||||||
|
|
||||||
shortcut_modifier_key:
|
shortcut_modifier_key:
|
||||||
shift: 'Shift'
|
shift: 'Shift'
|
||||||
|
Reference in New Issue
Block a user