mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:51:08 +08:00
Rename 'popular' to 'latest'. First stab at 'Hot' tab.
This commit is contained in:
@ -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!('-',' ')
|
||||
|
Reference in New Issue
Block a user