mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-12 12:39:43 +02:00
logic in domain_sidebar which determines display of DS Data and Key Data
This commit is contained in:
parent
7ace7fa27c
commit
7bd6e7f593
2 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
||||||
>
|
>
|
||||||
DNSSEC
|
DNSSEC
|
||||||
</a>
|
</a>
|
||||||
{% if domain.dnssec_enabled %}
|
{% if domain.dnssecdata is not None or request.path|startswith:url and request.path|endswith:'data' %}
|
||||||
<ul class="usa-sidenav__sublist">
|
<ul class="usa-sidenav__sublist">
|
||||||
<li class="usa-sidenav__item">
|
<li class="usa-sidenav__item">
|
||||||
{% url 'domain-dns-dnssec-dsdata' pk=domain.id as url %}
|
{% url 'domain-dns-dnssec-dsdata' pk=domain.id as url %}
|
||||||
|
|
|
@ -18,6 +18,11 @@ def startswith(text, starts):
|
||||||
return text.startswith(starts)
|
return text.startswith(starts)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@register.filter("endswith")
|
||||||
|
def endswith(text, ends):
|
||||||
|
if isinstance(text, str):
|
||||||
|
return text.endswith(ends)
|
||||||
|
return False
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def public_site_url(url_path):
|
def public_site_url(url_path):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue