forked from e621ng/e621ng
Merge pull request #339 from bitWolfy/post-navbar-link
[Posts] Make the search terms in the post navbar into a link
This commit is contained in:
commit
4fea15eab4
@ -2,7 +2,13 @@
|
||||
<ul>
|
||||
<li class="active">
|
||||
<%= link_to "‹ prev".html_safe, show_seq_post_path(post, :q => params[:q], :seq => "prev"), :rel => "prev nofollow", :class => "prev" %>
|
||||
<span class="search-name">Search: <%= params[:q].presence || "(none)" %></span>
|
||||
<span class="search-name">
|
||||
<% if params[:q].nil? %>
|
||||
Search: (none)
|
||||
<% else %>
|
||||
<%= link_to("Search: #{params[:q]}", posts_path(:tags => params[:q])) %>
|
||||
<% end %>
|
||||
</span>
|
||||
<%= link_to "next ›".html_safe, show_seq_post_path(post, :q => params[:q], :seq => "next"), :rel => "next nofollow", :class => "next" %>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user