fix nav bar highlighting
This commit is contained in:
@@ -21,7 +21,7 @@ class UserFeedbacksController < ApplicationController
|
|||||||
|
|
||||||
def index
|
def index
|
||||||
@search = UserFeedback.search(params[:search])
|
@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)
|
respond_with(@user_feedbacks)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -126,6 +126,24 @@ protected
|
|||||||
when "posts", "uploads", "post_versions", "explore/posts", "moderator/post/dashboards", "favorites", "tag_subscriptions"
|
when "posts", "uploads", "post_versions", "explore/posts", "moderator/post/dashboards", "favorites", "tag_subscriptions"
|
||||||
/^\/post/
|
/^\/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"
|
when "wiki_pages", "wiki_page_versions"
|
||||||
/^\/wiki_pages/
|
/^\/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
|
||||||
Reference in New Issue
Block a user