refactor: use OOP #6

Merged
pufereq merged 15 commits from refactor/use-oop into develop 2025-08-25 17:56:23 +00:00
9 changed files with 243 additions and 58 deletions
Showing only changes of commit bd9d95b741 - Show all commits

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>