mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Rename 'popular' to 'latest'. First stab at 'Hot' tab.
This commit is contained in:
parent
d1945057fd
commit
36269cfbaa
52 changed files with 946 additions and 323 deletions
|
@ -5,7 +5,7 @@ class ExceptionsController < ApplicationController
|
|||
def not_found
|
||||
f = Topic.where(deleted_at: nil, archetype: "regular")
|
||||
|
||||
@popular = f.order('views desc').take(10)
|
||||
@latest = f.order('views desc').take(10)
|
||||
@recent = f.order('created_at desc').take(10)
|
||||
@slug = params[:slug].class == String ? params[:slug] : ''
|
||||
@slug.gsub!('-',' ')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue