forked from e621ng/e621ng
fix nav bar highlighting
This commit is contained in:
parent
65b45e46c2
commit
ed9e0930d6
@ -21,7 +21,7 @@ class UserFeedbacksController < ApplicationController
|
||||
|
||||
def index
|
||||
@search = UserFeedback.search(params[:search])
|
||||
@user_feedbacks = @search.paginate(params[:page]).order("id desc")
|
||||
@user_feedbacks = @search.paginate(params[:page]).order("created_at desc")
|
||||
respond_with(@user_feedbacks)
|
||||
end
|
||||
|
||||
|
@ -126,6 +126,24 @@ protected
|
||||
when "posts", "uploads", "post_versions", "explore/posts", "moderator/post/dashboards", "favorites", "tag_subscriptions"
|
||||
/^\/post/
|
||||
|
||||
when "artists", "artist_versions"
|
||||
/^\/artist/
|
||||
|
||||
when "tags"
|
||||
/^\/tags/
|
||||
|
||||
when "pools"
|
||||
/^\/pools/
|
||||
|
||||
when "moderator/dashboards"
|
||||
/^\/moderator/
|
||||
|
||||
when "tag_aliases"
|
||||
/^\/tag_aliases/
|
||||
|
||||
when "tag_implications"
|
||||
/^\/tag_implications/
|
||||
|
||||
when "wiki_pages", "wiki_page_versions"
|
||||
/^\/wiki_pages/
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
class AddIndexCreatedAtOnUserFeedback < ActiveRecord::Migration
|
||||
def up
|
||||
add_index :user_feedback, :created_at
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :user_feedback, :created_at
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user