diff --git a/app/main/views/add_service.py b/app/main/views/add_service.py index 3a6d7722f..e8610f822 100644 --- a/app/main/views/add_service.py +++ b/app/main/views/add_service.py @@ -42,8 +42,8 @@ def add_service(): restricted=True, user_id=session['user_id'], email_from=email_from) - - return redirect(url_for('main.tour', service_id=service_id, page=1)) + session['service_id'] = service_id + return redirect(url_for('main.tour', page=1)) else: return render_template( 'views/add-service.html', diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index 81d1caeed..df5076e82 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -34,7 +34,8 @@ def service_dashboard(service_id): if session.get('invited_user'): session.pop('invited_user', None) - return redirect(url_for("main.tour", service_id=service_id, page=1)) + session['service_id'] = service_id + return redirect(url_for("main.tour", page=1)) statistics = statistics_api_client.get_statistics_for_service(service_id)['data'] template_statistics = aggregate_usage(template_statistics_client.get_template_statistics_for_service(service_id)) diff --git a/app/main/views/tour.py b/app/main/views/tour.py index a1a98300f..3ab1756df 100644 --- a/app/main/views/tour.py +++ b/app/main/views/tour.py @@ -12,9 +12,8 @@ headings = [ ] -@main.route("/services//tour/") -@login_required -def tour(service_id, page): +@main.route("/tour/") +def tour(page): return render_template( 'views/tour/{}.html'.format(page), current_page=page, diff --git a/app/templates/admin_template.html b/app/templates/admin_template.html index 168525842..1bf1be45b 100644 --- a/app/templates/admin_template.html +++ b/app/templates/admin_template.html @@ -91,8 +91,11 @@
-

Developers

- API documentation +

Documentation

+
diff --git a/app/templates/views/tour/1.html b/app/templates/views/tour/1.html index 2c3df7ad3..1474c8825 100644 --- a/app/templates/views/tour/1.html +++ b/app/templates/views/tour/1.html @@ -17,7 +17,7 @@

We can remove these restrictions when you’re ready.

- + Next {% endcall %} diff --git a/app/templates/views/tour/2.html b/app/templates/views/tour/2.html index d8508538a..fd321e927 100644 --- a/app/templates/views/tour/2.html +++ b/app/templates/views/tour/2.html @@ -29,7 +29,7 @@ >

- + Next {% endcall %} diff --git a/app/templates/views/tour/3.html b/app/templates/views/tour/3.html index 4bcd6a4da..c6138148b 100644 --- a/app/templates/views/tour/3.html +++ b/app/templates/views/tour/3.html @@ -32,7 +32,7 @@

Developers, you can add data automatically using an API

- + Next {% endcall %} diff --git a/app/templates/views/tour/4.html b/app/templates/views/tour/4.html index e976214e8..2b845d0fa 100644 --- a/app/templates/views/tour/4.html +++ b/app/templates/views/tour/4.html @@ -14,7 +14,7 @@

Notify merges your data with the template and sends the messages

- + Next