fixes #739
This commit is contained in:
@@ -59,6 +59,10 @@ article.post-preview {
|
|||||||
margin-left: 0.2em;
|
margin-left: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.low-post-count {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
body.mode-edit {
|
body.mode-edit {
|
||||||
background: #3A3;
|
background: #3A3;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,7 +125,8 @@ private
|
|||||||
post_count = counts[tag].to_s
|
post_count = counts[tag].to_s
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
html << "</li>"
|
html << "</li>"
|
||||||
|
|||||||
Reference in New Issue
Block a user