Skip to content

Commit a1b73f1

Browse files
committed
fix(templates): set in block;
- Move sets into their respective blocks.
1 parent 1a1bd14 commit a1b73f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ckanext/xloader/templates/xloader/resource_data.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
{% block primary_content_inner %}
66

7-
{% set action = h.url_for('xloader.resource_data', id=pkg.name, resource_id=res.id) %}
8-
{% set delete_action = h.url_for('xloader.delete_datastore_table', id=pkg.id, resource_id=res.id) %}
97
{% set show_table = true %}
108

119
{% block upload_ds_button %}
10+
{% set action = h.url_for('xloader.resource_data', id=pkg.name, resource_id=res.id) %}
1211
<form method="post" action="{{ action }}" class="datapusher-form mb-3 mr-3 d-inline-block">
1312
{{ h.csrf_input() if 'csrf_input' in h }}
1413
<button class="btn btn-primary" name="save" type="submit">
@@ -21,6 +20,7 @@
2120

2221
{% block delete_ds_button %}
2322
{% if res.datastore_active %}
23+
{% set delete_action = h.url_for('xloader.delete_datastore_table', id=pkg.id, resource_id=res.id) %}
2424
<form method="post" action="{{ delete_action }}" class="mb-3 d-inline-block">
2525
{{ h.csrf_input() if 'csrf_input' in h }}
2626
<a href="{{ h.url_for('xloader.delete_datastore_table', id=pkg.id, resource_id=res.id) }}"

0 commit comments

Comments
 (0)