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:
Chris Hill-Scott
2016-05-24 09:10:10 +01:00
parent 76662e1c84
commit 45f21e9a10
4 changed files with 4 additions and 16 deletions

View File

@@ -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>