mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-30 12:18:19 -04:00
Hide ‘created at…’ on the templates page
I don’t think that if there’s only one version of the template that it’s useful to see the created at date. The auditing stuff only becomes relevant once someone a template has been changed.
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.primary {
|
||||
@@ -90,7 +90,7 @@
|
||||
|
||||
.sms-message-use-links-with-title {
|
||||
@extend %sms-message-use-links;
|
||||
margin-top: 95px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.sms-message-from {
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
from_address=None,
|
||||
recipient=None,
|
||||
id=None,
|
||||
created_at=None,
|
||||
updated_at=None,
|
||||
versions_url=None,
|
||||
version=1,
|
||||
@@ -27,10 +26,6 @@
|
||||
{% if updated_at %}
|
||||
<p class="email-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if created_at %}
|
||||
<p class="email-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="email-message">
|
||||
{% if from_name or subject %}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
edit_link=None,
|
||||
from=None,
|
||||
version=1,
|
||||
created_at=None,
|
||||
updated_at=None,
|
||||
versions_url=None,
|
||||
show_placeholder_for_recipient=False,
|
||||
@@ -25,14 +24,10 @@
|
||||
{% if updated_at %}
|
||||
<p class="sms-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if created_at %}
|
||||
<p class="sms-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if recipient is not none %}
|
||||
<p class="sms-message-recipient">
|
||||
To:
|
||||
To:
|
||||
{% if show_placeholder_for_recipient %}
|
||||
<span class="placeholder">
|
||||
phone number
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
template.formatted_as_markup,
|
||||
name=template.name if show_title else None,
|
||||
id=template.id,
|
||||
created_at=template.get_raw('created_at', None),
|
||||
updated_at=template.get_raw('updated_at', None),
|
||||
version=template.get_raw('version', 1),
|
||||
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
||||
@@ -19,7 +18,6 @@
|
||||
template.formatted_as_markup,
|
||||
name=template.name if show_title else None,
|
||||
id=template.id,
|
||||
created_at=template.get_raw('created_at', None),
|
||||
updated_at=template.get_raw('updated_at', None),
|
||||
version=template.get_raw('version', 1),
|
||||
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
||||
@@ -38,4 +36,4 @@
|
||||
{% endif %}
|
||||
<a href="{{ url_for(".send_from_api", service_id=current_service.id, template_id=template.id) }}">API info</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user