From 45f21e9a10c1ac6699babe76a5c20776fc02e85a Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 24 May 2016 09:10:10 +0100 Subject: [PATCH] =?UTF-8?q?Hide=20=E2=80=98created=20at=E2=80=A6=E2=80=99?= =?UTF-8?q?=20on=20the=20templates=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/assets/stylesheets/components/sms-message.scss | 4 ++-- app/templates/components/email-message.html | 5 ----- app/templates/components/sms-message.html | 7 +------ app/templates/views/templates/_template.html | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/components/sms-message.scss b/app/assets/stylesheets/components/sms-message.scss index 71778799d..52dd44082 100644 --- a/app/assets/stylesheets/components/sms-message.scss +++ b/app/assets/stylesheets/components/sms-message.scss @@ -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 { diff --git a/app/templates/components/email-message.html b/app/templates/components/email-message.html index 46deda0f7..649c2410b 100644 --- a/app/templates/components/email-message.html +++ b/app/templates/components/email-message.html @@ -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 %}

Last updated on {{ updated_at|format_date_normal }} see earlier versions

{% endif %} - {% else %} - {% if created_at %} -

Created on {{ created_at|format_date_normal }}

- {% endif %} {% endif %}
{% if from_name or subject %} diff --git a/app/templates/components/sms-message.html b/app/templates/components/sms-message.html index b3a34fd8f..1bc20da49 100644 --- a/app/templates/components/sms-message.html +++ b/app/templates/components/sms-message.html @@ -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 %}

Last updated on {{ updated_at|format_date_normal }} see earlier versions

{% endif %} - {% else %} - {% if created_at %} -

Created on {{ created_at|format_date_normal }}

- {% endif %} {% endif %} {% if recipient is not none %}

- To: + To: {% if show_placeholder_for_recipient %} phone number diff --git a/app/templates/views/templates/_template.html b/app/templates/views/templates/_template.html index 0b80e0a02..3c40e42ba 100644 --- a/app/templates/views/templates/_template.html +++ b/app/templates/views/templates/_template.html @@ -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 %} API info

- \ No newline at end of file +