mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 19:43:11 -04:00
Add upload_type property to Job class
This commit is contained in:
@@ -52,6 +52,10 @@ class Job(JSONModel):
|
|||||||
def scheduled_for(self):
|
def scheduled_for(self):
|
||||||
return self._dict.get('scheduled_for')
|
return self._dict.get('scheduled_for')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def upload_type(self):
|
||||||
|
return self._dict.get('upload_type')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def processing_started(self):
|
def processing_started(self):
|
||||||
if not self._dict.get('processing_started'):
|
if not self._dict.get('processing_started'):
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
) %}
|
) %}
|
||||||
{% call row_heading() %}
|
{% call row_heading() %}
|
||||||
<div class="file-list">
|
<div class="file-list">
|
||||||
{% if item._dict.upload_type == 'letter' %}
|
{% if item.upload_type == 'letter' %}
|
||||||
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.original_file_name }}</a>
|
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.original_file_name }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user