mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-12-27 04:08:20 +01:00
Template fix for ip display helper
This commit is contained in:
parent
1013c5365a
commit
2fa9de5cf7
@ -17,8 +17,8 @@
|
|||||||
<a href="{{ self::dig_link(extra=extra, name=name) }}">{% if prefix %}{{ prefix }} {% endif %}{% if fqdn or name=="." %}{{ name }}{% else %}{{ name | trim_end_matches(pat=".") }}{% endif %}</a>
|
<a href="{{ self::dig_link(extra=extra, name=name) }}">{% if prefix %}{{ prefix }} {% endif %}{% if fqdn or name=="." %}{{ name }}{% else %}{{ name | trim_end_matches(pat=".") }}{% endif %}</a>
|
||||||
{% endmacro dig %}
|
{% endmacro dig %}
|
||||||
|
|
||||||
{% macro ip(extra, ip, text="") %}
|
{% macro ip(extra, ip, text=false) %}
|
||||||
<a href="{{ extra.base_url }}/ip/{{ ip | urlencode_strict | replace(from="%2e", to=".") | replace(from="%3a", to=":") | safe }}"><code>{{ text | default(value=ip) }}</code></a>
|
<a href="{{ extra.base_url }}/ip/{{ ip | urlencode_strict | replace(from="%2e", to=".") | replace(from="%3a", to=":") | safe }}"><code>{% if text %}{{ text }}{% else %}{{ ip }}{% endif %}</code></a>
|
||||||
{% endmacro dig %}
|
{% endmacro dig %}
|
||||||
|
|
||||||
{% macro breadcrumb_domain(extra, name) %}
|
{% macro breadcrumb_domain(extra, name) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user