/pool_versions: add '»' drilldown links.

Add '»' drilldown links for pool names, users, and post ids.
This commit is contained in:
evazion
2019-09-08 23:28:02 -05:00
parent 964a073ec3
commit 8198c610cc
5 changed files with 39 additions and 27 deletions

View File

@@ -0,0 +1,17 @@
<span class="diff-list">
<% diff[:added_post_ids].each do |post_id| %>
<ins>
<%= link_to post_id, post_path(post_id) %><%#
%><%= link_to "»", pool_versions_path(search: { post_id: post_id }) %>
</ins>
<% end %>
</span>
<span class="diff-list">
<% diff[:removed_post_ids].each do |post_id| %>
<del>
<%= link_to post_id, post_path(post_id) %><%#
%><%= link_to "»", pool_versions_path(search: { post_id: post_id }) %>
</del>
<% end %>
</span>