refactor(templates/index.html): adapt urls for blueprints

This commit is contained in:
2025-08-25 19:38:12 +02:00
parent 4baf29eb4a
commit bd9d95b741

View File

@@ -9,11 +9,11 @@
<body>
<div id="wrapper">
<header>
<h1><a href="{{ url_for('index') }}">judas</a></h1>
<h1><a href="{{ url_for('index.index') }}">judas</a></h1>
{% if logged %}
<p><a class="button" href="{{ url_for('logout') }}">Logout</a></p>
<p><a class="button" href="{{ url_for('auth.logout') }}">Logout</a></p>
{% else %}
<p><a class="button" href="{{ url_for('login') }}">Login</a></p>
<p><a class="button" href="{{ url_for('auth.login') }}">Login</a></p>
{% endif %}
</header>
<main class="center">
@@ -24,9 +24,9 @@
</div>
<p style="color: #bf616a;"><strong>Notice:</strong> Please use this system responsibly and in accordance with all applicable laws and organizational policies.</p>
{% if logged %}
<p><a class="button" href="{{ url_for('panel') }}">Go to panel</a></p>
<p><a class="button" href="{{ url_for('panel.panel') }}">Go to panel</a></p>
{% else %}
<p>Please <a href="{{ url_for('login')}}" class="link">log in</a> to manage your remote PCs.</p>
<p>Please <a href="{{ url_for('auth.login')}}" class="link">log in</a> to manage your remote PCs.</p>
{% endif %}
</main>
</div>