Browse Source

Open image identification links in new tabs

pull/40/head
Jano Slota 10 years ago
committed by czaks
parent
commit
31f0c1f1e3
  1. 3
      stylesheets/style.css
  2. 8
      templates/post/image_identification.html

3
stylesheets/style.css

@ -119,9 +119,6 @@ form table tr td div label {
.file:not(.multifile) { .file:not(.multifile) {
float: none; float: none;
} }
.multifile {
padding-right: 20px;
}
p.fileinfo { p.fileinfo {
display: block; display: block;
margin: 0 0 0 20px; margin: 0 0 0 20px;

8
templates/post/image_identification.html

@ -2,16 +2,16 @@
<span class='image_id'> <span class='image_id'>
{% if config.image_identification_imgops %} {% if config.image_identification_imgops %}
<a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}">ImgOps</a> <a href="http://imgops.com/{{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">ImgOps</a>
{% endif %} {% endif %}
{% if config.image_identification_exif and file.file|extension == 'jpg' %} {% 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 }}">Exif</a> <a href="http://regex.info/exif.cgi?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">Exif</a>
{% endif %} {% endif %}
{% if config.image_identification_google %} {% if config.image_identification_google %}
<a href="https://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">Google</a> <a href="https://www.google.com/searchbyimage?image_url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">Google</a>
{% endif %} {% endif %}
{% if config.image_identification_iqdb %} {% if config.image_identification_iqdb %}
<a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}">iqdb</a> <a href="http://iqdb.org/?url={{ config.domain }}{{ config.uri_img }}{{ file.file }}" target="_blank">iqdb</a>
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}

Loading…
Cancel
Save