Add page <title>s to tour pages

This commit is contained in:
Chris Hill-Scott
2016-04-04 16:54:28 +01:00
parent 47b86e70df
commit 0a3567ec48
5 changed files with 15 additions and 6 deletions

View File

@@ -4,6 +4,14 @@ from flask_login import login_required
from app.main import main
headings = [
'Trial mode',
'Start with templates',
'Add recipients',
'Send your messages',
]
@main.route("/services/<service_id>/tour/<int:page>")
@login_required
def tour(service_id, page):
@@ -11,5 +19,6 @@ def tour(service_id, page):
'views/tour/{}.html'.format(page),
service_id=service_id, # TODO: fix when Nicks PR is merged
current_page=page,
next_page=(page + 1)
next_page=(page + 1),
heading=headings[page - 1]
)