Change pool category class location

In order to make blacklisting by category easier.
This commit is contained in:
Toks
2013-07-27 11:46:35 -04:00
parent 942ba4ac09
commit e3ca0b26a7
3 changed files with 7 additions and 7 deletions

View File

@@ -202,17 +202,17 @@ class PostPresenter < Presenter
end
def pool_link_html(template, pool, options = {})
pool_html = ["<li id='nav-link-for-pool-#{pool.id}'>"]
pool_html = [%{<li id="nav-link-for-pool-#{pool.id}" class="pool-category-#{pool.category}">}]
match_found = false
if options[:include_rel]
prev_rel = "prev"
next_rel = "next"
klass = "active pool-category-#{pool.category}"
klass = "active"
else
prev_rel = nil
next_rel = nil
klass = "pool-category-#{pool.category}"
klass = ""
end
if @post.id != pool.post_id_array.first