Change styling of fileinfo, add iqdb search

This commit is contained in:
Jano Slota 2014-08-03 17:56:13 +02:00 committed by czaks
parent a87dc24169
commit 46c07d3566
4 changed files with 34 additions and 26 deletions

View file

@ -21,7 +21,7 @@
{% else %}
>{{ file.file }}
{% endif %}
</a> <span class="unimportant">
</a><br><span class="unimportant"><em>
(
{% if file.thumb == 'spoiler' %}
{% trans %}Spoiler Image{% endtrans %},
@ -33,9 +33,9 @@
, {{ ratio(file.width, file.height) }}
{% endif %}
{% endif %}
{% include "post/image_identification.html" %}
)
</span> {% include "post/file_controls.html" %}</p>
{% include "post/image_identification.html" %}
</em></span> {% include "post/file_controls.html" %}</p>
{% include "post/image.html" with {'post':file} %}
{% endif %}
</div>

View file

@ -1,14 +1,17 @@
{% if file.thumb != 'file' and config.image_identification %}
,
<span class='image_id'>
{% if config.image_identification_imgops %}
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}">io</a>
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}">ImgOps</a>
{% endif %}
{% if config.image_identification_exif and file.file|extension == 'jpg' %}
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">e</a>
<a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">Exif</a>
{% endif %}
{% if config.image_identification_google %}
<a href="http://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">g</a>
<a href="https://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">Google</a>
{% endif %}
{% if config.image_identification_iqdb %}
<a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">iqdb</a>
{% endif %}
</span>
{% endif %}