[#219] Support CKAN < 2.3
This commit is contained in:
parent
5bf0ac9b86
commit
5d23fab03f
|
@ -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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue