mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Update tour.py
Formatting
This commit is contained in:
+15
-7
@@ -141,19 +141,27 @@ def _get_tour_step_back_link(service_id, template_id, step_index):
|
|||||||
if step_index == 1:
|
if step_index == 1:
|
||||||
return {
|
return {
|
||||||
"href": {
|
"href": {
|
||||||
"url": url_for('main.begin_tour', service_id=service_id, template_id=template_id),
|
"url": url_for('main.begin_tour',
|
||||||
|
service_id=service_id,
|
||||||
|
template_id=template_id
|
||||||
|
),
|
||||||
"text": "Back to tour start"
|
"text": "Back to tour start"
|
||||||
},
|
},
|
||||||
"html": "Back to tour start"
|
"html": "Back to tour start"
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
return {
|
return {
|
||||||
"href": {
|
"href": {
|
||||||
"url": url_for('main.tour_step', service_id=service_id, template_id=template_id, step_index=step_index-1),
|
"url": url_for(
|
||||||
"text": "Back to previous step"
|
"main.tour_step",
|
||||||
},
|
service_id=service_id,
|
||||||
"html": "Back to previous step"
|
template_id=template_id,
|
||||||
}
|
step_index=step_index - 1,
|
||||||
|
),
|
||||||
|
"text": "Back to previous step",
|
||||||
|
},
|
||||||
|
"html": "Back to previous step",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@main.route(
|
@main.route(
|
||||||
|
|||||||
Reference in New Issue
Block a user