mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
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:
@@ -39,6 +39,10 @@
|
||||
|
||||
}
|
||||
|
||||
&-delete-link-without-button {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&-secondary-link {
|
||||
display: block;
|
||||
margin-top: $gutter;
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user