From b4fa1d912612e0ddb71a3c7208dfd0aeeed37c30 Mon Sep 17 00:00:00 2001 From: jutty Date: Sun, 21 Dec 2025 14:52:05 -0300 Subject: [PATCH] Render node ID label only if it differs from the title --- static/style.css | 2 +- templates/node.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index dc9c555..8948f40 100644 --- a/static/style.css +++ b/static/style.css @@ -69,7 +69,7 @@ span.hidden-label { h1.node-title { display: inline; - margin: 10px; + margin: 10px 0; } footer div { diff --git a/templates/node.html b/templates/node.html index e149e6c..5249483 100644 --- a/templates/node.html +++ b/templates/node.html @@ -7,7 +7,7 @@

{{ node.title }}

- ID: {{ node.id }} + {% if node.title != node.id %}ID: {{ node.id }}{% endif %} {% if node.hidden %}Hidden{% endif %}