formatting of expiration date and creation date in domain management

This commit is contained in:
David Kennedy 2023-12-12 16:03:04 -05:00
parent 225a03dd48
commit eb61199d85
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 11 additions and 9 deletions

View file

@ -34,7 +34,7 @@
{% include "includes/summary_item.html" with title='DNS name servers' domains='true' value=domain.nameservers list='true' edit_link=url editable=domain.is_editable %} {% include "includes/summary_item.html" with title='DNS name servers' domains='true' value=domain.nameservers list='true' edit_link=url editable=domain.is_editable %}
{% else %} {% else %}
{% if domain.is_editable %} {% if domain.is_editable %}
<h2 class="margin-top-neg-1"> DNS name servers </h2> <h2 class="margin-top-3"> DNS name servers </h2>
<p> No DNS name servers have been added yet. Before your domain can be used well need information about your domain name servers.</p> <p> No DNS name servers have been added yet. Before your domain can be used well need information about your domain name servers.</p>
<a class="usa-button margin-bottom-1" href="{{url}}"> Add DNS name servers </a> <a class="usa-button margin-bottom-1" href="{{url}}"> Add DNS name servers </a>
{% else %} {% else %}

View file

@ -1,10 +1,12 @@
{% if domain.expiration_date or domain.created_at %} {% if domain.expiration_date or domain.created_at %}
<div> <p class="margin-y-0">
{% if domain.expiration_date %}Expires: {% if domain.expiration_date %}
{{ domain.expiration_date|date:"Y-m-d" }} <strong class="text-primary-dark">Expires:</strong>
{% if domain.is_expired %} (expired){% endif %} {{ domain.expiration_date|date }}
<br/> {% if domain.is_expired %} <span class="text-error-dark">(expired)</span>{% endif %}
{% endif %} <br/>
{% if domain.created_at %}Date created: {{ domain.created_at|date:"Y-m-d" }}{% endif %} {% endif %}
</div> {% if domain.created_at %}
<strong class="text-primary-dark">Date created:</strong> {{ domain.created_at|date }}{% endif %}
</p>
{% endif %} {% endif %}