1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-12-23 13:04:42 +01:00
bird-lg/templates/route.html
tamihiro 1f020cdc40 Encode + when it appears in URL.
This patch takes care of encoding `+` within URL, such as `View the BGP map` link on the output of `show route where net ~ [ <prefix> + ]` response.
2019-06-09 21:39:21 +09:00

17 lines
727 B
HTML

{% extends "layout.html" %}
{% block body %}
{% for host in detail %}
<h3>
{{host}}: {{command}}
<small><a class="pull-right" href="/{{session.request_type|replace("_detail","")}}_bgpmap/{{session.hosts}}/{{session.proto}}?q={{session.request_args|urlencode}}">View the BGP map</a></small>
</h3>
{% if session.request_args != expression|replace("/32","")|replace("/128","") %}
<i>DNS: <a href="/whois/{{session.request_args}}" class="whois">{{session.request_args}}</a> => <a href="/whois/{{ expression|replace("/32","")|replace("/128","") }}" class="whois">{{expression|replace("/32","")|replace("/128","")}}</a></i><br />
{% endif %}<br />
<pre>
{{ detail[host]|trim|safe }}
</pre>
{% endfor %}
<br />
{% endblock %}