mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 19:04:33 -04:00
There’s no content in the tour that’s specific to a service. And since we can now take a pretty good guess at what service you last used, or which service we should send you to if you only have one service, there’s no need to make the URLs for the tour service-specific. This also means that you don’t need to be logged in to see the tour pages, and we have no good reason to only restrict these pages to users with accounts. https://www.pivotaltracker.com/story/show/116960703
23 lines
430 B
Python
23 lines
430 B
Python
from flask import render_template
|
|
from flask_login import login_required
|
|
|
|
from app.main import main
|
|
|
|
|
|
headings = [
|
|
'Trial mode',
|
|
'Start with templates',
|
|
'Add recipients',
|
|
'Send your messages',
|
|
]
|
|
|
|
|
|
@main.route("/tour/<int:page>")
|
|
def tour(page):
|
|
return render_template(
|
|
'views/tour/{}.html'.format(page),
|
|
current_page=page,
|
|
next_page=(page + 1),
|
|
heading=headings[page - 1]
|
|
)
|