Complete prefixing template tags with app names
Additionally remove unused template tags. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{% for page in pages %}
|
||||
<img
|
||||
alt="{% trans 'Document page image preview' %}"
|
||||
src="{% get_api_image_url page width=width height=height %}" style="width: 100%;"
|
||||
src="{% documents_get_api_image_url page width=width height=height %}" style="width: 100%;"
|
||||
/>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
<span class="spinner-container text-primary"
|
||||
style="height: {% if display_full_height %}100%{% else %}{{ display_height|default:150 }}px{% endif %}; display: block;"
|
||||
>
|
||||
{% get_icon 'mayan.apps.documents.icons.icon_document_image_loading' %}
|
||||
{% appearance_get_icon 'mayan.apps.documents.icons.icon_document_image_loading' %}
|
||||
</span>
|
||||
<img
|
||||
alt="{% trans 'Document image' %}"
|
||||
class="thin_border {{ image_classes }}"
|
||||
data-url="{% get_api_image_url instance width=image_width height=image_height zoom=image_zoom rotation=image_rotation %}"
|
||||
data-url="{% documents_get_api_image_url instance width=image_width height=image_height zoom=image_zoom rotation=image_rotation %}"
|
||||
src="#"
|
||||
style="{% if image_max_height %}max-height: {{ image_max_height }}; {% endif %}"
|
||||
/>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{% 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 %}"
|
||||
href="{% documents_get_api_image_url instance width=size_preview_width height=size_preview_height %}"
|
||||
data-type="image"
|
||||
{% if gallery_name %}data-fancybox="{{ gallery_name }}"{% endif %}
|
||||
>
|
||||
|
||||
@@ -6,5 +6,5 @@ register = Library()
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def get_api_image_url(obj, **kwargs):
|
||||
def documents_get_api_image_url(obj, **kwargs):
|
||||
return obj.get_api_image_url(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user