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

Commit

Permalink
Updates styling for tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
joegatt committed Mar 11, 2013
1 parent c80593e commit 40fd178
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions app/assets/stylesheets/themes/default.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,18 @@ ul.notes
+column(12)
+horizontal-list
margin-bottom: $line-height
// Also, what tags above means is ambiguous
// Causes a line-break
// &:before
// +icon-tags
li
a:after
content: ", "
&:last-child
a:after
content: ""
.count
color: $red

.versions
ol
Expand All @@ -314,13 +320,16 @@ ul.notes
+inline-block-list

.tags-show
h1:before
+icon-tag-2
ul.notes
+column(12)

ul.tags
+column(12)
+columns(2)


///////////////////////////////
//
// Media-queries
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/tags_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def link_to_tag_unless_obsolete(tag)
if tag['obsolete']
tag['name']
else
link_to_unless_current tag['name'], tag_path(tag)
link_to_unless_current tag['name'], tag_path(tag), :rel => 'tag'
end
end
end
2 changes: 1 addition & 1 deletion app/views/application/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%li= link_to_unless_current t('tags.title'), tags_path

= list_of Settings.web_channels do |link|
= link_to link.gsub(/^([^\.]*).*$/, '\1').titlecase, "http://#{ link }"
= link_to link.gsub(/^([^\.]*).*$/, '\1').gsub(/plus/, '+').titlecase, "http://#{ link }"

%li= link_to 'RSS feed', '/rss'
%li= link_to 'joe@joegatt.net', 'mailto:joe@joegatt.net'
Expand Down
2 changes: 1 addition & 1 deletion app/views/tags/_tags_list.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
- else
%ul.tags
= list_of tags do |tag|
= link_to "#{ tag.name } (#{ tag.count })", tag_path(tag)
= link_to "#{ tag.name } <span class=\"count\">#{ tag.count }</span>".html_safe, tag_path(tag), :rel => 'tag'
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ en:

tags:
title: "Tags"
item: "Tag: %{name}"
item: "%{name}"
short: "%{name}"

0 comments on commit 40fd178

Please sign in to comment.