From fb95a920b5f09d164e2917c17d48ee2a58303e56 Mon Sep 17 00:00:00 2001 From: Ricardo Teixeira Date: Thu, 21 May 2026 06:58:35 +0100 Subject: [PATCH 1/2] Metrics is called table on menus --- templates/base.html | 4 ++-- templates/graph.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5fb6e8b..b3070e8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -69,13 +69,13 @@

AI Graph Tools

{% if request.path == url_for('metrics_page') %}
  • - Metrics + Table
  • {% else %}
  • - Metrics + Table
  • {% endif %} diff --git a/templates/graph.html b/templates/graph.html index 544a7a5..996f5a5 100644 --- a/templates/graph.html +++ b/templates/graph.html @@ -14,7 +14,7 @@ From a46b6aef9419ffb5da63b13f251496d8331ba2b4 Mon Sep 17 00:00:00 2001 From: Ricardo Teixeira Date: Thu, 21 May 2026 07:05:23 +0100 Subject: [PATCH 2/2] Only show menu when graph is selected --- templates/base.html | 52 +++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/templates/base.html b/templates/base.html index b3070e8..c43854a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -53,31 +53,33 @@

    AI Graph Tools

    {% endif %} - {% if request.path == url_for('graph_page') %} -
  • - - Graph - -
  • - {% else %} -
  • - - Graph - -
  • - {% endif %} - {% if request.path == url_for('metrics_page') %} -
  • - - Table - -
  • - {% else %} -
  • - - Table - -
  • + {% if request.path == url_for('graph_page') or request.path == url_for('metrics_page') %} + {% if request.path == url_for('graph_page') %} +
  • + + Graph + +
  • + {% else %} +
  • + + Graph + +
  • + {% endif %} + {% if request.path == url_for('metrics_page') %} +
  • + + Table + +
  • + {% else %} +
  • + + Table + +
  • + {% endif %} {% endif %}