summaryrefslogtreecommitdiff
path: root/templates/post_thread.html
diff options
context:
space:
mode:
authorMarcin Ɓabanowski <marcin@6irc.net>2012-12-23 04:38:20 +0100
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 04:00:22 -0400
commit7c8bbe8527be504804893672cc26430d11c272f2 (patch)
tree64cc174ec86378ce6f21190bf307878fa03f6e38 /templates/post_thread.html
parentb7d884ef45c271a0081a61b396cddb9aaf9a55ef (diff)
Implement image identification buttons using regex.info/exif, google images and tineye
Diffstat (limited to 'templates/post_thread.html')
-rw-r--r--templates/post_thread.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html
index b702712e..0ada3e70 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -28,6 +28,16 @@
<span class="postfilename">{{ post.filename|bidi_cleanup }}</span>
{% endif %}
{% endif %}
+ {% if post.thumb != 'file' and config.image_identification %}
+ ,
+ <span class='image_id'>
+ {% if post.file|extension == 'jpg' %}
+ <a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">e</a>
+ {% endif %}
+ <a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a>
+ <a href="http://www.tineye.com/search?url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">t</a>
+ </span>
+ {% endif %}
)
</span></p>
<a href="{{ config.uri_img }}{{ post.file }}" target="_blank"{% if post.thumb == 'file' %} class="file"{% endif %}>