[Posts] Make the search navbar match the pool and set ones

This commit is contained in:
bitWolfy 2021-10-24 10:14:38 -07:00
parent 865a524921
commit c4c857267b

View File

@ -2,12 +2,11 @@
<ul>
<li class="active">
<%= link_to "&lsaquo;&thinsp;prev".html_safe, show_seq_post_path(post, :q => params[:q], :seq => "prev"), :rel => "prev nofollow", :class => "prev" %>
<span class="search-name">
Search:
<% if params[:q].presence.nil? %>
(none)
<span class="search-name">
<% if params[:q].nil? %>
Search: (none)
<% else %>
<%= link_to params[:q].presence, posts_path(:tags => params[:q].presence) %>
<%= link_to("Search: #{params[:q]}", posts_path(:tags => params[:q])) %>
<% end %>
</span>
<%= link_to "next&thinsp;&rsaquo;".html_safe, show_seq_post_path(post, :q => params[:q], :seq => "next"), :rel => "next nofollow", :class => "next" %>