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

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