mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Update content following review
This commit is contained in:
@@ -131,9 +131,9 @@ def revoke_api_key(service_id, key_id):
|
||||
key_name = current_service.get_api_key(key_id)['name']
|
||||
if request.method == 'GET':
|
||||
flash([
|
||||
"Are you sure you want to revoke this API key?",
|
||||
"‘{}’ will no longer let you connect to GOV.UK Notify.".format(key_name)
|
||||
], 'revoke')
|
||||
"Are you sure you want to revoke ‘{}’?".format(key_name),
|
||||
"You will not be able to use this API key to connect to GOV.UK Notify."
|
||||
], 'revoke this API key')
|
||||
return render_template(
|
||||
'views/api/keys.html',
|
||||
)
|
||||
|
||||
@@ -615,7 +615,7 @@ def delete_service_template(service_id, template_id):
|
||||
last_used_notification = template_statistics_client.get_template_statistics_for_template(
|
||||
service_id, template['id']
|
||||
)
|
||||
message = 'It was last used {} ago'.format(
|
||||
message = 'This template was last used {} ago.'.format(
|
||||
'more than seven days' if not last_used_notification else get_human_readable_delta(
|
||||
parse(last_used_notification['created_at']).replace(tzinfo=None),
|
||||
datetime.utcnow()
|
||||
|
||||
Reference in New Issue
Block a user