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:
Chris Hill-Scott
2020-05-29 17:25:11 +01:00
parent 4df99bd27f
commit 84f67bf1dd
5 changed files with 8 additions and 5 deletions

View File

@@ -22,7 +22,8 @@ def accept_invite(token):
message = Markup("""
Youre 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("""
Youre 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)))