fix coloring for tags

This commit is contained in:
albert
2011-12-07 16:53:48 -05:00
parent 8e3a6c5923
commit 746901357a
3 changed files with 5 additions and 5 deletions

View File

@@ -40,15 +40,15 @@ article.post-preview.post-status-flagged img {
}
div#c-posts {
li.category-1 a {
.category-1 a {
color: #A00;
}
li.category-3 a {
.category-3 a {
color: #A0A;
}
li.category-4 a {
.category-4 a {
color: #0A0;
}

View File

@@ -25,7 +25,7 @@
<div class="row list-of-tags">
<strong>Tags</strong>
<% post.tag_array.each do |tag_name| %>
<span class="tag-type-<%= Tag.category_for(tag_name) %>">
<span class="category-<%= Tag.category_for(tag_name) %>">
<%= link_to(tag_name.tr("_", " "), posts_path(:tags => tag_name)) %>
</span>
<% end %>

View File

@@ -2,7 +2,7 @@
<h1>Recent Changes (<%= link_to "all", wiki_pages_path(:meta_sort => "updated_at.desc") %>)</h1>
<ul>
<% WikiPage.recent.each do |page| %>
<li class="tag-category-<%= page.category_name %>"><%= link_to page.pretty_title, wiki_page_path(page) %></li>
<li class="category-<%= page.category_name %>"><%= link_to page.pretty_title, wiki_page_path(page) %></li>
<% end %>
</ul>
</section>