Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
highlights currently selected admin view style icon
Browse files Browse the repository at this point in the history
  • Loading branch information
masukomi committed Aug 20, 2012
1 parent 6f4f686 commit 5866e15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/admin.css.scss
Expand Up @@ -4,6 +4,9 @@
padding-left: 0.25em;
padding-right: 0.25em;
}
.admin_toggle_highlighted{
color: #0181eb;
}
.content {
padding-left: 1em;
padding-right: 1em;
Expand Down
4 changes: 2 additions & 2 deletions app/views/posts/admin.html.haml
Expand Up @@ -23,9 +23,9 @@
Published
%div
Show
=link_to('', '/admin/?by_kudos=true', {:title=>'The Loved', :alt=>'The Loved', :class=>'icon-heart admin_toggle'})
=link_to('', '/admin/?by_kudos=true', {:title=>'The Loved', :alt=>'The Loved', :class=>'icon-heart admin_toggle' + (params[:by_kudos] ? ' admin_toggle_highlighted' : '')})
or
=link_to('', '/admin/', {:title=>'Admin', :alt=>'Admin', :class=>'icon-list admin_toggle'})
=link_to('', '/admin/', {:title=>'Admin', :alt=>'Admin', :class=>'icon-list admin_toggle' + (params[:by_kudos] ? '' : ' admin_toggle_highlighted')})
- if ! params[:by_kudos]
.tags_list
-if @tags.size > 0
Expand Down

0 comments on commit 5866e15

Please sign in to comment.