Detect detached connections and render them differently
This commit is contained in:
parent
ebe0f5cfc0
commit
f1965f7530
4 changed files with 30 additions and 15 deletions
|
|
@ -16,13 +16,20 @@
|
|||
<h2>Connections</h2>
|
||||
{% if connections %}
|
||||
<ul>
|
||||
{% for connection in connections %}
|
||||
{% for connection in connections | filter(attribute="detached", value=false) %}
|
||||
<li>
|
||||
<strong>{{id}}</strong>
|
||||
🡪
|
||||
<a href="/node/{{connection.to}}">{{connection.to}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% for connection in connections | filter(attribute="detached", value=true) %}
|
||||
<li>
|
||||
<strong>{{id}}</strong>
|
||||
🡪
|
||||
<span style="filter: opacity(70%);">{{connection.to}}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<em>No outgoing connections.</em>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue