Customise download page if agreement signed

If the user’s organisation has already signed the agreement we shouldn’t
give them the instructions for how to sign it.
This commit is contained in:
Chris Hill-Scott
2018-05-09 13:10:01 +01:00
parent dc6d66daba
commit 220e11ccdd
3 changed files with 40 additions and 1 deletions

View File

@@ -20,6 +20,13 @@ def agreement():
navigation_links=features_nav(),
)
if agreement_info.agreement_signed:
return render_template(
'views/agreement-signed.html',
owner=agreement_info.owner,
navigation_links=features_nav(),
)
return render_template(
'views/agreement.html',
owner=agreement_info.owner,