Skip to content

Commit

Permalink
[QOLDEV-1011] add comments on parameter fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Dec 4, 2024
1 parent 661622c commit 8415c76
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/data_qld/templates/datarequests/close.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% ckan_extends %}
{#
Handle either old Pylons-style global variables, or newer template parameters.
#}
{% set datasets = datasets or c.datasets %}
{% set datarequest = datarequest or c.datarequest %}
{% set errors = errors or c.errors %}
Expand Down
3 changes: 3 additions & 0 deletions ckanext/data_qld/templates/datarequests/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@


{% block primary_content_inner %}
{#
Handle either old Pylons-style global variables, or newer template parameters.
#}
{% set datarequest = datarequest or c.datarequest %}
{% set userobj = userobj or c.userobj %}
{% snippet "package/comment_list.html", content_type='datarequest', pkg_id=datarequest.id, pkg_name=datarequest.id, userobj=userobj %}
Expand Down
3 changes: 3 additions & 0 deletions ckanext/data_qld/templates/datarequests/edit.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% ckan_extends %}
{#
Handle either old Pylons-style global variables, or newer template parameters.
#}
{% set datarequest = datarequest or c.datarequest %}
{% set errors = errors or c.errors %}
{% set errors_summary = errors_summary or c.errors_summary %}
Expand Down
3 changes: 3 additions & 0 deletions ckanext/data_qld/templates/datarequests/new.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% ckan_extends %}
{#
Handle either old Pylons-style global variables, or newer template parameters.
#}
{% set datarequest = datarequest or c.datarequest %}
{% set errors = errors or c.errors %}
{% set errors_summary = errors_summary or c.errors_summary %}
Expand Down
3 changes: 3 additions & 0 deletions ckanext/data_qld/templates/datarequests/show.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% ckan_extends %}
{#
Handle either old Pylons-style global variables, or newer template parameters.
#}
{% set datarequest = datarequest or c.datarequest %}

{% block title %}Data request {{datarequest.get('title', '')}}{% endblock %}
Expand Down

0 comments on commit 8415c76

Please sign in to comment.