/pool_versions: add '»' drilldown links.
Add '»' drilldown links for pool names, users, and post ids.
This commit is contained in:
17
app/views/pool_versions/_diff.html.erb
Normal file
17
app/views/pool_versions/_diff.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user