new: Initial display of redirect on popup page

pull/81/head
Raphaël Vinot 2020-07-29 14:00:46 +02:00
parent c653472ab2
commit 90843eb8dc
2 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,7 @@ def hostnode_popup(tree_uuid: str, node_uuid: str):
'video': "/static/video.png",
'livestream': "/static/video.png",
'response_cookie': "/static/cookie_received.png",
# redirect has to be last
'redirect': "/static/redirect.png",
'redirect_to_nothing': "/static/cookie_in_url.png"
}

View File

@ -104,6 +104,11 @@
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download the content of the response">
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a>
{% 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.">
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a>
Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }}
{% else %}
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
{%endif%}