mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-11 05:42:00 -04:00
Use Uploaded by instead of Created by for the label.
Move status to the last column on the table
This commit is contained in:
@@ -16,5 +16,5 @@
|
||||
Started {{ uploaded_at|format_datetime }}
|
||||
</p>
|
||||
{% endif %}
|
||||
Created by {{ created_by }}
|
||||
Uploaded by {{ created_by }}
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
caption="Recent activity",
|
||||
caption_visible=False,
|
||||
empty_message='You haven’t sent any notifications yet',
|
||||
field_headings=['Job', 'Time', right_aligned_field_heading('Status'), 'Created By']
|
||||
field_headings=['Job', 'Time', 'Uploaded by', right_aligned_field_heading('Status')]
|
||||
) %}
|
||||
{% call field() %}
|
||||
<a href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
||||
@@ -32,12 +32,12 @@
|
||||
{% call field() %}
|
||||
{{ item.created_at | format_datetime}}
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
{{ item.status }}
|
||||
{% endcall %}
|
||||
{% call field() %}
|
||||
{{ item.created_by.name }}
|
||||
{% endcall %}
|
||||
{% call field(align='right') %}
|
||||
{{ item.status }}
|
||||
{% endcall %}
|
||||
{% endcall %}
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ def test_should_show_updates_for_one_job_as_json(
|
||||
assert 'Recipient' in content['notifications']
|
||||
assert 'Status' in content['notifications']
|
||||
assert 'Started' in content['status']
|
||||
assert 'Created by Test User' in content['status']
|
||||
assert 'Uploaded by Test User' in content['status']
|
||||
|
||||
|
||||
def test_should_show_notifications_for_a_service(app_,
|
||||
|
||||
Reference in New Issue
Block a user