Clean up whitespace in various template files for consistency

This commit is contained in:
Ross
2026-01-26 12:49:04 +00:00
parent a667566db6
commit a61c8529ae
14 changed files with 201 additions and 178 deletions
+17 -18
View File
@@ -1,39 +1,38 @@
{% extends 'base.html' %}
{% partialdef viewer %}
<div style="height: 100vh; width: 95%, mangin: 0; padding: 0; overflow: hidden;">
<iframe crossorigin="anonymous" allow='cross-origin-isolated' class="embedded-viewer" src="{{viewer_link}}" width="100%" height="95%" style="border:none;"></iframe>
</div>
<style>
.embedded-viewer {
border: none;
pointer-events: auto;
margin: 0; height: 100%; overflow: hidden
}
</style>
<style>
.embedded-viewer {
border: none;
pointer-events: auto;
margin: 0; height: 100%; overflow: hidden
}
</style>
{% endpartialdef %}
{% partialdef embed %}
Close
Close
{% partial viewer %}
{% partial viewer %}
{% endpartialdef %}
{% block content %}
{% partial viewer %}
{% partial viewer %}
{% endblock content %}
{% block css %}
{% endblock css %}
+21 -21
View File
@@ -1,16 +1,16 @@
{% extends 'base.html' %}
{% partialdef login-block %}
Logging in here allows your account to be linked with CIMAR. You may periodically need to re-login to keep the link active.
<form method="POST" class="post-form" id="cimar-login-form">
Username: <input type="text" id="username" name="username" value=""/> <br/>
Password: <input type="password" id="password" name="password" value=""/> <br/>
<button hx-post='{% url "cimar_login" %}'
hx-target="#results">Login</button>
</form>
Logging in here allows your account to be linked with CIMAR. You may periodically need to re-login to keep the link active.
<form method="POST" class="post-form" id="cimar-login-form">
Username: <input type="text" id="username" name="username" value=""/> <br/>
Password: <input type="password" id="password" name="password" value=""/> <br/>
<button hx-post='{% url "cimar_login" %}'
hx-target="#results">Login</button>
</form>
<div id="results"></div>
<div id="results"></div>
{% endpartialdef %}
@@ -18,20 +18,20 @@ hx-target="#results">Login</button>
{% block content %}
<div class="anatomy">
<h2>CIMAR login</h2>
Login status: {{ login_status }} ({{cimar_sid}})
{% if login_status %}
<button
class="button btn-sm"
hx-get="{% url 'cimar_logout' %}"
hx-swap="outerHTML"
>Logout</button>
{% endif %}
<br/>
<h2>CIMAR login</h2>
Login status: {{ login_status }} ({{cimar_sid}})
{% partial login-block %}
{% if login_status %}
<button
class="button btn-sm"
hx-get="{% url 'cimar_logout' %}"
hx-swap="outerHTML"
>Logout</button>
{% endif %}
<br/>
{% partial login-block %}
</div>
{% endblock %}
+1 -1
View File
@@ -1,6 +1,6 @@
{% extends app_name|add:'/base.html' %}
{% partialdef exam-list %}
<ul class="exam-list exam-list-active">
{% for exam in exams %}