mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Tooltip and expiration change
This commit is contained in:
parent
cd227f2964
commit
7178ed6283
2 changed files with 3 additions and 5 deletions
|
@ -1582,11 +1582,9 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
if self.is_expired() and self.state != self.State.UNKNOWN:
|
if self.is_expired() and self.state != self.State.UNKNOWN:
|
||||||
# Given expired is not a physical state, but it is displayed as such,
|
# Given expired is not a physical state, but it is displayed as such,
|
||||||
# We need custom logic to determine this message.
|
# We need custom logic to determine this message.
|
||||||
help_text = (
|
help_text = "This domain has expired. Complete the online renewal process to maintain access."
|
||||||
"This domain has expired, but it is still online. " "To renew this domain, contact help@get.gov."
|
|
||||||
)
|
|
||||||
elif flag_is_active(request, "domain_renewal") and self.is_expiring():
|
elif flag_is_active(request, "domain_renewal") and self.is_expiring():
|
||||||
help_text = "This domain will expire soon. Go to “Manage” to renew the domain."
|
help_text = "This domain is expiring soon. Complete the online renewal process to maintain access."
|
||||||
else:
|
else:
|
||||||
help_text = Domain.State.get_help_text(self.state)
|
help_text = Domain.State.get_help_text(self.state)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% if domain.expiration_date or domain.created_at %}
|
{% if domain.expiration_date or domain.created_at %}
|
||||||
<p>
|
<p>
|
||||||
{% if domain.expiration_date %}
|
{% if domain.expiration_date %}
|
||||||
<strong class="text-primary-dark">Expires:</strong>
|
<strong class="text-primary-dark">Date of expiration:</strong>
|
||||||
{{ domain.expiration_date|date }}
|
{{ domain.expiration_date|date }}
|
||||||
{% if domain.is_expired %} <span class="text-error"><strong>(expired)</strong></span>{% endif %}
|
{% if domain.is_expired %} <span class="text-error"><strong>(expired)</strong></span>{% endif %}
|
||||||
<br/>
|
<br/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue