mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Don’t allow unstyled links
They should always be styled with the `govuk-link` class from GOV.UK Frontend, or another custom class.
This commit is contained in:
@@ -22,7 +22,8 @@ def accept_invite(token):
|
||||
message = Markup("""
|
||||
You’re signed in as {}.
|
||||
This invite is for another email address.
|
||||
<a href={}>Sign out</a> and click the link again to accept this invite.
|
||||
<a href={} class="govuk-link govuk-link--no-visited-state">Sign out</a>
|
||||
and click the link again to accept this invite.
|
||||
""".format(
|
||||
current_user.email_address,
|
||||
url_for("main.sign_out", _external=True)))
|
||||
@@ -78,7 +79,8 @@ def accept_org_invite(token):
|
||||
message = Markup("""
|
||||
You’re signed in as {}.
|
||||
This invite is for another email address.
|
||||
<a href={}>Sign out</a> and click the link again to accept this invite.
|
||||
<a class="govuk-link govuk-link--no-visited-state" href={}>Sign out</a>
|
||||
and click the link again to accept this invite.
|
||||
""".format(
|
||||
current_user.email_address,
|
||||
url_for("main.sign_out", _external=True)))
|
||||
|
||||
Reference in New Issue
Block a user