Skip to content

Commit

Permalink
Sort the 'my tags' box by alpha order
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed May 7, 2011
1 parent 6c12000 commit 0a4e906
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_order
end

def user_tags
@tags = current_user.tags.order("taggings_count DESC")
@tags = current_user.tags.order("name ASC")
end

end
6 changes: 6 additions & 0 deletions app/stylesheets/RonRonnement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ input[type='submit'] {
-moz-transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px);
-o-transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px);
}

span.score {
color: "#333";
&:before { content: " ["; }
&:after { content: "] "; }
}
}
}

Expand Down
1 change: 1 addition & 0 deletions app/views/tags/_near.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
%h1 Les tags connexes
%ul
= list_of(@tag.near_tags) do |tag|
%span.score{ :title => pluralize(tag.cnt, "contenu commun", "contenus communs") }= tag.cnt
= link_to tag.name, tag_path(tag.name)
6 changes: 6 additions & 0 deletions public/stylesheets/RonRonnement.css
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@ input[type='submit'] {
-khtml-transform: rotate(-90deg) translate(-100%, -100%) translate(3px, -5px);
-moz-transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px);
-o-transform: rotate(-90deg) translate(-100%, -100%) translate(-3px, -5px); }
#sidebar .box span.score {
color: "#333"; }
#sidebar .box span.score:before {
content: " ["; }
#sidebar .box span.score:after {
content: "] "; }

/* menu du haut */
#site {
Expand Down

0 comments on commit 0a4e906

Please sign in to comment.