mirror of
https://github.com/sileht/bird-lg.git
synced 2024-12-22 04:24:42 +01:00
1f020cdc40
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.
17 lines
727 B
HTML
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 %}
|