chg: Allow to hilight the redirect from a popup

pull/81/head
Raphaël Vinot 2020-07-29 18:43:41 +02:00
parent 0fe3826040
commit b62495be86
1 changed files with 7 additions and 1 deletions

View File

@ -105,10 +105,16 @@
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/> <img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a> </a>
{% elif key == "redirect" %} {% elif key == "redirect" %}
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="See the node the URL redirects to."> {% for child in urlnode.children if child.name == urlnode.redirect_url %}
<a href="" role="button" onclick="whereAmI('{{ child.hostnode_uuid }}')" title="See the node the URL redirects to.">
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/> <img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a> </a>
{% else %}
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
{% endfor %}
{% if urlnode.redirect_url %}
Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }} Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }}
{%endif%}
{% else %} {% else %}
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/> <img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
{%endif%} {%endif%}