This commit is contained in:
Toks
2013-03-30 13:21:39 -04:00
parent bd28711158
commit f6bfdacd3d
2 changed files with 6 additions and 1 deletions

View File

@@ -59,6 +59,10 @@ article.post-preview {
margin-left: 0.2em;
}
.low-post-count {
color: red;
}
body.mode-edit {
background: #3A3;
}

View File

@@ -125,7 +125,8 @@ private
post_count = counts[tag].to_s
end
html << %{<span class="post-count">#{post_count}</span>}
is_underused_tag = counts[tag].to_i <= 10 && categories[tag] == Tag.categories.general
html << %{<span class="post-count#{is_underused_tag ? " low-post-count" : ""}">#{post_count}</span>}
end
html << "</li>"