Render node ID label only if it differs from the title

This commit is contained in:
Juno Takano 2025-12-21 14:52:05 -03:00
commit b4fa1d9126
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ span.hidden-label {
h1.node-title { h1.node-title {
display: inline; display: inline;
margin: 10px; margin: 10px 0;
} }
footer div { footer div {

View file

@ -7,7 +7,7 @@
<div class="header-row"> <div class="header-row">
<h1 class="node-title">{{ node.title }}</h1> <h1 class="node-title">{{ node.title }}</h1>
<div class="labels"> <div class="labels">
<span class="label id-label">ID: {{ node.id }}</span> {% if node.title != node.id %}<span class="label id-label">ID: {{ node.id }}</span>{% endif %}
{% if node.hidden %}<span class="label hidden-label">Hidden</span>{% endif %} {% if node.hidden %}<span class="label hidden-label">Hidden</span>{% endif %}
</div> </div>
</div> </div>