mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-02 15:11:13 -04:00
Move end time to bottom of page
End time is less important than the status of the broadcast, or when it was started (eg when it was received by most people in the area).
This commit is contained in:
@@ -34,13 +34,9 @@
|
||||
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0 live-broadcast">
|
||||
Live until {{ item.finishes_at|format_datetime_relative }}
|
||||
</p>
|
||||
{% elif item.status == 'cancelled' %}
|
||||
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0 govuk-hint">
|
||||
Stopped {{ item.cancelled_at|format_datetime_relative }}
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="govuk-body govuk-!-margin-top-6 govuk-!-margin-bottom-0 govuk-hint">
|
||||
Finished {{ item.finishes_at|format_datetime_relative }}
|
||||
Broadcast {{ item.starts_at|format_datetime_relative }}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -99,26 +99,20 @@
|
||||
{% else %}
|
||||
{{ page_header(broadcast_message.template_name) }}
|
||||
|
||||
<p class="govuk-body govuk-!-margin-bottom-3">
|
||||
Started broadcasting
|
||||
{{ broadcast_message.starts_at|format_datetime_human }}.
|
||||
</p>
|
||||
|
||||
<p class="govuk-body">
|
||||
{% if broadcast_message.status == 'pending-approval' %}
|
||||
Will broadcast until {{ broadcast_message.finishes_at|format_datetime_relative }}.
|
||||
{% elif broadcast_message.status == 'broadcasting' %}
|
||||
{% if broadcast_message.status == 'broadcasting' %}
|
||||
<p class="govuk-body">
|
||||
Live until {{ broadcast_message.finishes_at|format_datetime_relative }} 
|
||||
{%- if not hide_stop_link %}
|
||||
<a href="{{ url_for('.cancel_broadcast_message', service_id=current_service.id, broadcast_message_id=broadcast_message.id) }}" class="destructive-link destructive-link--no-visited-state">Stop broadcast early</a>
|
||||
<a href="{{ url_for('.cancel_broadcast_message', service_id=current_service.id, broadcast_message_id=broadcast_message.id) }}" class="destructive-link destructive-link--no-visited-state">Stop broadcasting</a>
|
||||
{% endif %}
|
||||
{% elif broadcast_message.status == 'cancelled' %}
|
||||
Stopped by {{ broadcast_message.cancelled_by.name }}
|
||||
{{ broadcast_message.cancelled_at|format_datetime_human }}.
|
||||
{% else %}
|
||||
Finished broadcasting {{ broadcast_message.finishes_at|format_datetime_human }}.
|
||||
{% endif %}
|
||||
</p>
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="govuk-body govuk-!-margin-bottom-4">
|
||||
Broadcast
|
||||
{{ broadcast_message.starts_at|format_datetime_human }}.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{{ broadcast_message.template|string }}
|
||||
@@ -149,4 +143,19 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if broadcast_message.status == 'broadcasting' %}
|
||||
<p class="govuk-body">
|
||||
Broadcasting stops {{ broadcast_message.finishes_at|format_datetime_human }}.
|
||||
</p>
|
||||
{% elif broadcast_message.status == 'cancelled' %}
|
||||
<p class="govuk-body">
|
||||
Stopped by {{ broadcast_message.cancelled_by.name }}
|
||||
{{ broadcast_message.cancelled_at|format_datetime_human }}.
|
||||
</p>
|
||||
{% elif broadcast_message.status == 'completed' %}
|
||||
<p class="govuk-body">
|
||||
Finished broadcasting {{ broadcast_message.finishes_at|format_datetime_human }}.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user