mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 19:58:26 -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 {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary {
|
.primary {
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
.sms-message-use-links-with-title {
|
.sms-message-use-links-with-title {
|
||||||
@extend %sms-message-use-links;
|
@extend %sms-message-use-links;
|
||||||
margin-top: 95px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sms-message-from {
|
.sms-message-from {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
from_address=None,
|
from_address=None,
|
||||||
recipient=None,
|
recipient=None,
|
||||||
id=None,
|
id=None,
|
||||||
created_at=None,
|
|
||||||
updated_at=None,
|
updated_at=None,
|
||||||
versions_url=None,
|
versions_url=None,
|
||||||
version=1,
|
version=1,
|
||||||
@@ -27,10 +26,6 @@
|
|||||||
{% if updated_at %}
|
{% 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>
|
<p class="email-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
|
||||||
{% if created_at %}
|
|
||||||
<p class="email-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="email-message">
|
<div class="email-message">
|
||||||
{% if from_name or subject %}
|
{% if from_name or subject %}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
edit_link=None,
|
edit_link=None,
|
||||||
from=None,
|
from=None,
|
||||||
version=1,
|
version=1,
|
||||||
created_at=None,
|
|
||||||
updated_at=None,
|
updated_at=None,
|
||||||
versions_url=None,
|
versions_url=None,
|
||||||
show_placeholder_for_recipient=False,
|
show_placeholder_for_recipient=False,
|
||||||
@@ -25,14 +24,10 @@
|
|||||||
{% if updated_at %}
|
{% 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>
|
<p class="sms-message-updated-at">Last updated on {{ updated_at|format_date_normal }} <a href="{{ versions_url }}">see earlier versions</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
|
||||||
{% if created_at %}
|
|
||||||
<p class="sms-message-updated-at">Created on {{ created_at|format_date_normal }}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if recipient is not none %}
|
{% if recipient is not none %}
|
||||||
<p class="sms-message-recipient">
|
<p class="sms-message-recipient">
|
||||||
To:
|
To:
|
||||||
{% if show_placeholder_for_recipient %}
|
{% if show_placeholder_for_recipient %}
|
||||||
<span class="placeholder">
|
<span class="placeholder">
|
||||||
phone number
|
phone number
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
template.formatted_as_markup,
|
template.formatted_as_markup,
|
||||||
name=template.name if show_title else None,
|
name=template.name if show_title else None,
|
||||||
id=template.id,
|
id=template.id,
|
||||||
created_at=template.get_raw('created_at', None),
|
|
||||||
updated_at=template.get_raw('updated_at', None),
|
updated_at=template.get_raw('updated_at', None),
|
||||||
version=template.get_raw('version', 1),
|
version=template.get_raw('version', 1),
|
||||||
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
||||||
@@ -19,7 +18,6 @@
|
|||||||
template.formatted_as_markup,
|
template.formatted_as_markup,
|
||||||
name=template.name if show_title else None,
|
name=template.name if show_title else None,
|
||||||
id=template.id,
|
id=template.id,
|
||||||
created_at=template.get_raw('created_at', None),
|
|
||||||
updated_at=template.get_raw('updated_at', None),
|
updated_at=template.get_raw('updated_at', None),
|
||||||
version=template.get_raw('version', 1),
|
version=template.get_raw('version', 1),
|
||||||
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
versions_url=url_for('.view_template_versions', service_id=current_service.id, template_id=template.id)
|
||||||
@@ -38,4 +36,4 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ url_for(".send_from_api", service_id=current_service.id, template_id=template.id) }}">API info</a>
|
<a href="{{ url_for(".send_from_api", service_id=current_service.id, template_id=template.id) }}">API info</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user