[#219] Support CKAN < 2.3

This commit is contained in:
amercader 2016-01-14 11:23:41 +00:00
parent 5bf0ac9b86
commit 5d23fab03f
2 changed files with 12 additions and 2 deletions

View File

@ -5,7 +5,12 @@
{% block primary_content_inner %}
<div class="module-content">
{% block form %}
{% if c.form %}
{# CKAN < 2.3 #}
{{ c.form | safe }}
{% else %}
{{- h.snippet(form_snippet, c=c, **form_vars) -}}
{% endif %}
{% endblock %}
</div>
{% endblock %}

View File

@ -14,7 +14,12 @@
<section class="module">
<div class="module-content">
{% block form %}
{% if c.form %}
{# CKAN < 2.3 #}
{{ c.form | safe }}
{% else %}
{{- h.snippet(form_snippet, c=c, **form_vars) -}}
{% endif %}
{% endblock %}
</div>
</section>