Files
mayan-edms/mayan/apps/documents/templates/documents/widgets/document_thumbnail.html
Roberto Rosario 38228b4fe8 Control the height of thumbnails in table view
Since tables row height can't be controlled using CSS (they
will always resize to the size of their elements), this commit
adds a table cell container whose size can be controlled from
the view. This way big thumbnail images won't break the appearance
of the table.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2018-12-24 14:29:14 -04:00

26 lines
916 B
HTML

{% load documents_tags %}
<a
class="fancybox"
{% if disable_title_link %}
data-caption="{{ instance }}"
{% else %}
data-caption="<a class='a-caption' href='{{ instance.get_absolute_url }}'>{{ instance }} <i class='fa fa-external-link-alt'></i></a>"
{% endif %}
href="{% get_api_image_url instance width=size_preview_width height=size_preview_height %}"
data-type="image"
{% if gallery_name %}data-fancybox="{{ gallery_name }}"{% endif %}
>
{% with 'lazy-load thin_border-thumbnail' as image_classes %}
{% with '200px' as image_style_max_height %}
{% with '100%' as image_style_height %}
{% with size_thumbnail_width as image_width %}
{% with size_thumbnail_height as image_height %}
{% include 'documents/forms/widgets/document_page_image.html' %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endwith %}
</a>