mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 21:54:46 +08:00
Category dropdown should be in the position
order
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<section class="category-column first">
|
||||
{{each categoriesOdd itemViewClass="Discourse.FeaturedTopicsView"}}
|
||||
{{each categoriesEven itemViewClass="Discourse.FeaturedTopicsView"}}
|
||||
</section>
|
||||
<section class="category-column">
|
||||
{{each categoriesEven itemViewClass="Discourse.FeaturedTopicsView"}}
|
||||
{{each categoriesOdd itemViewClass="Discourse.FeaturedTopicsView"}}
|
||||
</section>
|
||||
|
||||
<div class='clearfix'></div>
|
@ -45,6 +45,8 @@ class Category < ActiveRecord::Base
|
||||
has_one :category_search_data
|
||||
belongs_to :parent_category, class_name: 'Category'
|
||||
|
||||
default_scope order('position')
|
||||
|
||||
scope :latest, ->{ order('topic_count desc') }
|
||||
|
||||
scope :secured, ->(guardian = nil) {
|
||||
|
Reference in New Issue
Block a user