Commit 363b2dbd authored by Kroustouris Stauros's avatar Kroustouris Stauros
Browse files

add include if exists template tag for footer iframe

parent 33913760
{% load i18n %}
{% load include_maybe %}
<footer class="stickyfooter">
<div class="container">
......@@ -12,9 +14,11 @@
{% endfor %}
Powered by <a href="" target="_blank">DjNRO</a> v{{VERSION}}
{% if "partial/bottom_iframe.html"|template_exists %}
<div class="">
{% include 'partial/bottom_iframe.html' %}
{% endif %}
from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
def template_exists(value):
return True
except template.TemplateDoesNotExist:
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment