mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Merge branch 'master' into record-user-that-requested-to-go-live
This commit is contained in:
@@ -65,11 +65,6 @@ def privacy():
|
||||
return render_template('views/privacy.html')
|
||||
|
||||
|
||||
@main.route('/trial-mode')
|
||||
def trial_mode():
|
||||
return redirect(url_for('.using_notify') + '#trial-mode', 301)
|
||||
|
||||
|
||||
@main.route('/pricing')
|
||||
def pricing():
|
||||
return render_template(
|
||||
@@ -85,7 +80,7 @@ def pricing():
|
||||
|
||||
@main.route('/delivery-and-failure')
|
||||
def delivery_and_failure():
|
||||
return redirect(url_for('.using_notify') + '#messagedeliveryandfailure', 301)
|
||||
return redirect(url_for('.message_status'), 301)
|
||||
|
||||
|
||||
@main.route('/design-patterns-content-guidance')
|
||||
@@ -240,6 +235,30 @@ def roadmap():
|
||||
)
|
||||
|
||||
|
||||
@main.route('/features/email')
|
||||
def features_email():
|
||||
return render_template(
|
||||
'views/features/emails.html',
|
||||
navigation_links=features_nav()
|
||||
)
|
||||
|
||||
|
||||
@main.route('/features/sms')
|
||||
def features_sms():
|
||||
return render_template(
|
||||
'views/features/text-messages.html',
|
||||
navigation_links=features_nav()
|
||||
)
|
||||
|
||||
|
||||
@main.route('/features/letters')
|
||||
def features_letters():
|
||||
return render_template(
|
||||
'views/features/letters.html',
|
||||
navigation_links=features_nav()
|
||||
)
|
||||
|
||||
|
||||
@main.route('/features/security', endpoint='security')
|
||||
def security():
|
||||
return render_template(
|
||||
@@ -261,6 +280,27 @@ def using_notify():
|
||||
return render_template(
|
||||
'views/using-notify.html',
|
||||
navigation_links=features_nav()
|
||||
), 410
|
||||
|
||||
|
||||
@main.route('/features/messages-status')
|
||||
def message_status():
|
||||
return render_template(
|
||||
'views/message-status.html',
|
||||
navigation_links=features_nav()
|
||||
)
|
||||
|
||||
|
||||
@main.route('/trial-mode')
|
||||
def trial_mode():
|
||||
return redirect(url_for('.trial_mode_new'), 301)
|
||||
|
||||
|
||||
@main.route('/features/trial-mode')
|
||||
def trial_mode_new():
|
||||
return render_template(
|
||||
'views/trial-mode.html',
|
||||
navigation_links=features_nav()
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ def view_job(service_id, job_id):
|
||||
version=job['template_version']
|
||||
)['data']
|
||||
|
||||
just_sent_message = 'Your {} been sent. Printing starts {} at 5.30pm.'.format(
|
||||
just_sent_message = 'Your {} been sent. Printing starts {} at 5:30pm.'.format(
|
||||
'letter has' if job['notification_count'] == 1 else 'letters have',
|
||||
printing_today_or_tomorrow()
|
||||
)
|
||||
|
||||
@@ -153,7 +153,7 @@ def get_letter_printing_statement(status, created_at):
|
||||
created_at_dt = parser.parse(created_at).replace(tzinfo=None)
|
||||
|
||||
if letter_can_be_cancelled(status, created_at_dt):
|
||||
return 'Printing starts {} at 5.30pm'.format(printing_today_or_tomorrow())
|
||||
return 'Printing starts {} at 5:30pm'.format(printing_today_or_tomorrow())
|
||||
else:
|
||||
printed_datetime = utc_string_to_aware_gmt_datetime(created_at) + timedelta(hours=6, minutes=30)
|
||||
printed_date = _format_datetime_short(printed_datetime)
|
||||
|
||||
@@ -3,11 +3,33 @@ def features_nav():
|
||||
{
|
||||
"name": "Features",
|
||||
"link": "main.features",
|
||||
"sub_navigation_items": [
|
||||
{
|
||||
"name": "Emails",
|
||||
"link": "main.features_email",
|
||||
},
|
||||
{
|
||||
"name": "Text messages",
|
||||
"link": "main.features_sms",
|
||||
},
|
||||
{
|
||||
"name": "Letters",
|
||||
"link": "main.features_letters",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Roadmap",
|
||||
"link": "main.roadmap",
|
||||
},
|
||||
{
|
||||
"name": "Trial mode",
|
||||
"link": "main.trial_mode_new",
|
||||
},
|
||||
{
|
||||
"name": "Message status",
|
||||
"link": "main.message_status",
|
||||
},
|
||||
{
|
||||
"name": "Security",
|
||||
"link": "main.security",
|
||||
@@ -16,8 +38,4 @@ def features_nav():
|
||||
"name": "Terms of use",
|
||||
"link": "main.terms",
|
||||
},
|
||||
{
|
||||
"name": "Using Notify",
|
||||
"link": "main.using_notify",
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user