posts: fix selected pool not being highlighted when doing pool:<name> search.
Fix the pool name not being bolded in the pool navbar when doing a pool:<name> search. Previously the selected pool was only bolded when doing a pool:<id> search.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<% end %>
|
||||
|
||||
<% pools.each do |pool| %>
|
||||
<% selected = pool_id == pool.id %>
|
||||
<% selected = selected_pool == pool %>
|
||||
<% first_post_id = pool.post_ids.first %>
|
||||
<% last_post_id = pool.post_ids.last %>
|
||||
<% previous_post_id = pool.previous_post_id(post.id) %>
|
||||
@@ -38,7 +38,7 @@
|
||||
<% end %>
|
||||
|
||||
<% favgroups.each do |favgroup| %>
|
||||
<% selected = favgroup_id == favgroup.id %>
|
||||
<% selected = selected_favgroup == favgroup %>
|
||||
<% first_post_id = favgroup.post_ids.first %>
|
||||
<% last_post_id = favgroup.post_ids.last %>
|
||||
<% previous_post_id = favgroup.previous_post_id(post.id) %>
|
||||
|
||||
Reference in New Issue
Block a user