Files
danbooru/app/views/pool_versions/_diff.html.erb
evazion 8198c610cc /pool_versions: add '»' drilldown links.
Add '»' drilldown links for pool names, users, and post ids.
2019-09-08 23:28:02 -05:00

18 lines
487 B
Plaintext

<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>