Make delete link flush left when there’s no button

The delete link was designed to be used with a button, where it needs
some padding to separate it from the button.

We now have a case where it’s being used without an accompanying button,
so we need a variation without that padding.
This commit is contained in:
Chris Hill-Scott
2017-04-18 13:19:41 +01:00
parent d5b78fac17
commit ac948ceb19
3 changed files with 6 additions and 2 deletions

View File

@@ -39,6 +39,10 @@
}
&-delete-link-without-button {
padding-left: 0;
}
&-secondary-link {
display: block;
margin-top: $gutter;

View File

@@ -17,7 +17,7 @@
<a class="page-footer-back-link" href="{{ back_link }}">{{ back_link_text }}</a>
{% endif %}
{% if delete_link %}
<span class="page-footer-delete-link">
<span class="page-footer-delete-link {% if not button_text %}page-footer-delete-link-without-button{% endif %}">
<a href="{{ delete_link }}">{{ delete_link_text }}</a>
</span>
{% endif %}

View File

@@ -23,7 +23,7 @@
</div>
{% if template._template.updated_at %}
<div class="bottom-gutter">
<div class="bottom-gutter-1-2">
<h2 class="heading-small">Last edited {{ template._template.updated_at|format_delta }}</h2>
<p>
<a href="{{ url_for('.view_template_versions', service_id=current_service.id, template_id=template.id) }}">See previous versions</a>