tags: refactor tag lists to use ViewComponent.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
<section id="tag-box">
|
||||
<h2>Tags</h2>
|
||||
<%= @post_set.tag_list_html(current_query: params[:tags], show_extra_links: policy(Post).show_extra_links?) %>
|
||||
<%= render_search_tag_list(@post_set.related_tags, current_query: params[:tags], show_extra_links: policy(Post).show_extra_links?) %>
|
||||
</section>
|
||||
|
||||
<%= render "posts/partials/index/options" %>
|
||||
|
||||
@@ -52,6 +52,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= @post.presenter.inline_tag_list_html %>
|
||||
<%= render_inline_tag_list(@post) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<%= render "posts/partials/index/blacklist" %>
|
||||
|
||||
<section id="tag-list">
|
||||
<%= @post.presenter.split_tag_list_html(current_query: params[:q], show_extra_links: policy(@post).show_extra_links?) %>
|
||||
<%= render_categorized_tag_list(@post, current_query: params[:q], show_extra_links: policy(@post).show_extra_links?) %>
|
||||
</section>
|
||||
|
||||
<section id="post-information">
|
||||
|
||||
Reference in New Issue
Block a user