Added reverse image search on IQDB and Google Images
This commit is contained in:
parent
d78da4769a
commit
2763ff7ead
2 changed files with 18 additions and 3 deletions
1
TODO
1
TODO
|
@ -14,7 +14,6 @@ everything related to posts:
|
||||||
- take care of pages
|
- take care of pages
|
||||||
- add A/D hotkeys
|
- add A/D hotkeys
|
||||||
- hiding posts
|
- hiding posts
|
||||||
- link to iqdb and/or tineye
|
|
||||||
|
|
||||||
- random post
|
- random post
|
||||||
- regard safety settings
|
- regard safety settings
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
<% var permaLink = (window.location.origin + '/' + window.location.pathname + '/data/posts/' + post.name).replace(/([^:])\/+/g, '$1/') %>
|
||||||
|
|
||||||
<div id="post-view-wrapper">
|
<div id="post-view-wrapper">
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<ul class="essential">
|
<ul class="essential">
|
||||||
<li>
|
<li>
|
||||||
<a class="download" href="/data/posts/<%= post.name %>">
|
<a class="download" href="<%= permaLink %>">
|
||||||
<i class="fa fa-download"></i>
|
<i class="fa fa-download"></i>
|
||||||
<br/>
|
<br/>
|
||||||
<%= post.contentExtension + ', ' + formatFileSize(post.originalFileSize) %>
|
<%= post.contentExtension + ', ' + formatFileSize(post.originalFileSize) %>
|
||||||
|
@ -112,7 +114,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (_.any(privileges) || _.any(editPrivileges)) { %>
|
<% if (_.any(privileges) || _.any(editPrivileges) || post.contentType === 'image') { %>
|
||||||
<h1>Options</h1>
|
<h1>Options</h1>
|
||||||
|
|
||||||
<ul class="operations">
|
<ul class="operations">
|
||||||
|
@ -147,6 +149,20 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<% if (post.contentType === 'image') { %>
|
||||||
|
<li>
|
||||||
|
<a href="http://iqdb.org/?url=<%= permaLink %>">
|
||||||
|
Search on IQDB
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="https://www.google.com/searchbyimage?&image_url=<%= permaLink %>">
|
||||||
|
Search on Google Images
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<% } %>
|
||||||
</ul>
|
</ul>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue