mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
Make terms page smarter about the agreement
People are emailing us asking if their organisation has signed the agreement. In some cases they have, so this is a waste of their and our time. This commit adds a bit of logic to the terms of use page to tell users when their organisation has already signed the agreement.
This commit is contained in:
@@ -9,6 +9,7 @@ from app import convert_to_boolean
|
||||
from app.main import main
|
||||
from app.main.forms import SearchTemplatesForm
|
||||
from app.main.views.sub_navigation_dictionaries import features_nav
|
||||
from app.utils import GovernmentDomain
|
||||
|
||||
|
||||
@main.route('/')
|
||||
@@ -152,7 +153,8 @@ def security():
|
||||
def terms():
|
||||
return render_template(
|
||||
'views/terms-of-use.html',
|
||||
navigation_links=features_nav()
|
||||
navigation_links=features_nav(),
|
||||
agreement_info=GovernmentDomain.from_current_user(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user