mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +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
|
||||
</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">
|
||||
<li class="usa-sidenav__item">
|
||||
{% url 'domain-dns-dnssec-dsdata' pk=domain.id as url %}
|
||||
|
|
|
@ -18,6 +18,11 @@ def startswith(text, starts):
|
|||
return text.startswith(starts)
|
||||
return False
|
||||
|
||||
@register.filter("endswith")
|
||||
def endswith(text, ends):
|
||||
if isinstance(text, str):
|
||||
return text.endswith(ends)
|
||||
return False
|
||||
|
||||
@register.simple_tag
|
||||
def public_site_url(url_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue