mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
some tweaks to optimize code in templates
This commit is contained in:
parent
903a3bf369
commit
29d003eb4a
2 changed files with 15 additions and 22 deletions
|
@ -6,7 +6,7 @@
|
||||||
<div class="margin-top-4 tablet:grid-col-10">
|
<div class="margin-top-4 tablet:grid-col-10">
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="usa-summary-box dotgov-status-box margin-top-3 padding-left-2{% if domain.state == 'unknown' or domain.state == 'dns needed'%} dotgov-status-box--action-need{% endif %}"
|
class="usa-summary-box dotgov-status-box margin-top-3 padding-left-2{% if domain.state == domain.State.UNKNOWN or domain.state == domain.State.DNS_NEEDED%} dotgov-status-box--action-need{% endif %}"
|
||||||
role="region"
|
role="region"
|
||||||
aria-labelledby="summary-box-key-information"
|
aria-labelledby="summary-box-key-information"
|
||||||
>
|
>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<span class="text-bold text-primary-darker">
|
<span class="text-bold text-primary-darker">
|
||||||
Status:
|
Status:
|
||||||
</span>
|
</span>
|
||||||
{% if domain.state == "unknown" or domain.state == 'dns needed'%}
|
{% if domain.state == domain.State.UNKNOWN or domain.state == domain.State.DNS_NEEDED%}
|
||||||
DNS Needed
|
DNS Needed
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ domain.state|title }}
|
{{ domain.state|title }}
|
||||||
|
|
|
@ -47,28 +47,21 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url "domain" pk=domain.pk %}">
|
<a href="{% url "domain" pk=domain.pk %}">
|
||||||
|
<svg
|
||||||
|
class="usa-icon"
|
||||||
|
aria-hidden="true"
|
||||||
|
focusable="false"
|
||||||
|
role="img"
|
||||||
|
width="24"
|
||||||
|
>
|
||||||
{% if domain.state == "deleted" or domain.state == "on hold" %}
|
{% if domain.state == "deleted" or domain.state == "on hold" %}
|
||||||
<svg
|
<use xlink:href="{%static 'img/sprite.svg'%}#visibility"></use>
|
||||||
class="usa-icon"
|
</svg>
|
||||||
aria-hidden="true"
|
View <span class="usa-sr-only">{{ domain.name }}</span>
|
||||||
focusable="false"
|
|
||||||
role="img"
|
|
||||||
width="24"
|
|
||||||
>
|
|
||||||
<use xlink:href="{%static 'img/sprite.svg'%}#visibility"></use>
|
|
||||||
</svg>
|
|
||||||
View <span class="usa-sr-only">{{ domain.name }}</span>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<svg
|
<use xlink:href="{%static 'img/sprite.svg'%}#settings"></use>
|
||||||
class="usa-icon"
|
</svg>
|
||||||
aria-hidden="true"
|
Manage <span class="usa-sr-only">{{ domain.name }}</span>
|
||||||
focusable="false"
|
|
||||||
role="img"
|
|
||||||
width="24"
|
|
||||||
>
|
|
||||||
<use xlink:href="{%static 'img/sprite.svg'%}#settings"></use>
|
|
||||||
</svg>
|
|
||||||
Manage <span class="usa-sr-only">{{ domain.name }}</span>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue