summaryrefslogtreecommitdiff
path: root/templates/post/image_identification.html
diff options
context:
space:
mode:
authorJano Slota <jano@alokal.eu>2014-05-06 19:15:59 +0200
committerczaks <marcin@6irc.net>2014-05-07 11:14:30 +0200
commit593560956c629fb2df9b97b5afe9c1eb2666652b (patch)
treeb2882abe53ec056f2feaa9ab81d75d2d6495dcec /templates/post/image_identification.html
parentcd15458a324a5ce97a79f0dc6bb08bda9d38803d (diff)
Added configurabe image identification
Diffstat (limited to 'templates/post/image_identification.html')
-rw-r--r--templates/post/image_identification.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/post/image_identification.html b/templates/post/image_identification.html
index 3d3bd655..a6e4e48d 100644
--- a/templates/post/image_identification.html
+++ b/templates/post/image_identification.html
@@ -1,10 +1,14 @@
{% if post.thumb != 'file' and config.image_identification %}
,
<span class='image_id'>
- <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a>
- {% if post.file|extension == 'jpg' %}
+ {% if config.image_identification_imgops %}
+ <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ post.file }}">io</a>
+ {% endif %}
+ {% if config.image_identification_exif and 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>
+ {% if config.image_identification_google %}
+ <a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ post.file }}">g</a>
+ {% endif %}
</span>
{% endif %}