forked from e621ng/e621ng
[Posts] Allow some of the Related links when a post isn't visible (#648)
This commit is contained in:
parent
165cd315e9
commit
715ea9bddb
@ -32,24 +32,22 @@
|
||||
|
||||
<% end %>
|
||||
|
||||
<% if @post.visible? %>
|
||||
<section id="post-related-images">
|
||||
<h1>Related</h1>
|
||||
<ul>
|
||||
<li><%= link_to "Sets with this post", post_sets_path(post_id: @post.id), rel: "nofollow" %></li>
|
||||
<% if IqdbProxy.enabled? && @post.has_preview? %>
|
||||
<li><%= link_to "Visually similar on E6", iqdb_queries_path(search: { post_id: @post.id }), rel: "nofollow" %></li>
|
||||
<% end %>
|
||||
<% if @post.is_image? %>
|
||||
<li><a rel="nofollow" href="https://www.google.com/searchbyimage?image_url=<%= @post.reverse_image_url %>&client=e621">Reverse Google Search</a></li>
|
||||
<li><a rel="nofollow" href="https://saucenao.com/search.php?url=<%= @post.reverse_image_url %>">Reverse SauceNAO Search</a></li>
|
||||
<li><a rel="nofollow" href="https://derpibooru.org/search/reverse?url=<%= @post.reverse_image_url %>">Reverse Derpibooru Search</a></li>
|
||||
<li><a rel="nofollow" href="https://kheina.com/?url=<%= @post.reverse_image_url %>">Reverse Kheina Search</a></li>
|
||||
<% end %>
|
||||
<li><a rel="nofollow" href="https://inkbunny.net/search_process.php?text=<%= @post.md5 %>&md5=yes">Inkbunny MD5 Search</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<% end %>
|
||||
<section id="post-related-images">
|
||||
<h1>Related</h1>
|
||||
<ul>
|
||||
<li><%= link_to "Sets with this post", post_sets_path(post_id: @post.id), rel: "nofollow" %></li>
|
||||
<% if IqdbProxy.enabled? && @post.has_preview? %>
|
||||
<li><%= link_to "Visually similar on E6", iqdb_queries_path(search: { post_id: @post.id }), rel: "nofollow" %></li>
|
||||
<% end %>
|
||||
<% if @post.visible? && @post.is_image? %>
|
||||
<li><a rel="nofollow" href="https://www.google.com/searchbyimage?image_url=<%= @post.reverse_image_url %>&client=e621">Reverse Google Search</a></li>
|
||||
<li><a rel="nofollow" href="https://saucenao.com/search.php?url=<%= @post.reverse_image_url %>">Reverse SauceNAO Search</a></li>
|
||||
<li><a rel="nofollow" href="https://derpibooru.org/search/reverse?url=<%= @post.reverse_image_url %>">Reverse Derpibooru Search</a></li>
|
||||
<li><a rel="nofollow" href="https://kheina.com/?url=<%= @post.reverse_image_url %>">Reverse Kheina Search</a></li>
|
||||
<% end %>
|
||||
<li><a rel="nofollow" href="https://inkbunny.net/search_process.php?text=<%= @post.md5 %>&md5=yes">Inkbunny MD5 Search</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</aside>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user