fix nav bar highlighting

This commit is contained in:
albert 2013-02-20 22:59:31 -05:00
parent 65b45e46c2
commit ed9e0930d6
3 changed files with 28 additions and 1 deletions

View File

@ -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

View File

@ -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/

View File

@ -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