From fa52178f630c61e2499e27c377ae5066b6e8e12c Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Thu, 26 Sep 2024 13:18:48 +0000 Subject: [PATCH] Fixed WebUI HTTP templates --- src/webui/service/templates/base.html | 4 ++-- src/webui/service/templates/qkd_app/home.html | 16 +++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/webui/service/templates/base.html b/src/webui/service/templates/base.html index f59e534bd..9cea0a59d 100644 --- a/src/webui/service/templates/base.html +++ b/src/webui/service/templates/base.html @@ -105,9 +105,9 @@ </li> <li class="nav-item"> {% if '/qkd_app/' in request.path %} - <a class="nav-link active" aria-current="page" href="{{ url_for('app.home') }}">App</a> + <a class="nav-link active" aria-current="page" href="{{ url_for('qkd_app.home') }}">QKD Apps</a> {% else %} - <a class="nav-link" href="{{ url_for('app.home') }}">App</a> + <a class="nav-link" href="{{ url_for('qkd_app.home') }}">QKD Apps</a> {% endif %} </li> <li class="nav-item"> diff --git a/src/webui/service/templates/qkd_app/home.html b/src/webui/service/templates/qkd_app/home.html index e138acd14..9573013f4 100644 --- a/src/webui/service/templates/qkd_app/home.html +++ b/src/webui/service/templates/qkd_app/home.html @@ -41,7 +41,7 @@ {% for app in apps %} <tr> <td> - {{ app.app_id.app_uuid.uuid }} + {{ app.app_id.app_uuid.uuid }} </td> <td> {{ ase.Name(app.app_status).replace('QKDAPPSTATUS_', '') }} @@ -74,12 +74,14 @@ {% endif %} </td> <td> - <a href="{{ url_for('app.detail', app_uuid=app.app_id.app_uuid.uuid) }}"> - <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16"> - <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/> - <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/> - </svg> - </a> + <!-- + <a href="{{ url_for('qkd_app.detail', app_uuid=app.app_id.app_uuid.uuid) }}"> + <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16"> + <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/> + <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/> + </svg> + </a> + --> </td> </tr> {% endfor %} -- GitLab