mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
On the activity page, only link to template or job
If the notification has come from an API call, the template is the only thing that exists If it’s a job, then we need to tell you name of the file. But you can click though to see the template.
This commit is contained in:
@@ -55,12 +55,11 @@
|
|||||||
{{ item.to }}
|
{{ item.to }}
|
||||||
</p>
|
</p>
|
||||||
<p class="hint">
|
<p class="hint">
|
||||||
<a href="{{ url_for('.view_template_version', service_id=current_service.id, template_id=item.template.id, version=item.template_version) }}">{{ item.template.name }}</a>
|
|
||||||
sent from
|
|
||||||
{% if item.job %}
|
{% if item.job %}
|
||||||
<a href="{{ url_for(".view_job", service_id=current_service.id, job_id=item.job.id) }}">{{ item.job.original_file_name }}</a>
|
From <a href="{{ url_for(".view_job", service_id=current_service.id, job_id=item.job.id) }}">{{ item.job.original_file_name }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
an API call
|
<a href="{{ url_for('.view_template_version', service_id=current_service.id, template_id=item.template.id, version=item.template_version) }}">{{ item.template.name }}</a>
|
||||||
|
from an API call
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|||||||
Reference in New Issue
Block a user