mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 03:39:19 -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:
@@ -93,7 +93,7 @@ def create_api_key(service_id):
|
||||
disabled_options = [KEY_TYPE_NORMAL]
|
||||
option_hints[KEY_TYPE_NORMAL] = Markup(
|
||||
'Not available because your service is in '
|
||||
'<a href="/features/trial-mode">trial mode</a>'
|
||||
'<a class="govuk-link govuk-link--no-visited-state" href="/features/trial-mode">trial mode</a>'
|
||||
)
|
||||
if current_service.has_permission('letter'):
|
||||
option_hints[KEY_TYPE_TEAM] = 'Cannot be used to send letters'
|
||||
|
||||
@@ -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)))
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
This is an API-only feature.
|
||||
</p>
|
||||
<p class="govuk-body">
|
||||
To send a file by email, follow the instructions in our <a href={{ url_for('main.documentation') }}>API documentation</a>.
|
||||
To send a file by email, follow the instructions in our <a class="govuk-link govuk-link--no-visited-state" href={{ url_for('main.documentation') }}>API documentation</a>.
|
||||
</p>
|
||||
<h2 class="heading-medium">{% if contact_details %}Change contact details for{% else %}Add contact details to{% endif %} the file download page</h2>
|
||||
<p class="govuk-body">
|
||||
|
||||
Reference in New Issue
Block a user