-
- {% include "file_browser/tree.html" with path=root %}
-
-
+ {% include "file_browser/tree.html" with path=root %}
+
{{ path_item.contents }}{% endif %} -
{{ path_item.contents }}+ {% endif %} +
- {{ child.display }} -
- {% if child.children %} --
- {% include "file_browser/tree.html" with path=child %}
-
+ {{ child.display }} +
+ {% if child.children %} +-
+ {% include "file_browser/tree.html" with path=child %}
+
Airlock
-Hello World
+Airlock
+Hello World
{% endblock content %} diff --git a/airlock/templates/jobserver-error.html b/airlock/templates/jobserver-error.html index d0906123..02f9efda 100644 --- a/airlock/templates/jobserver-error.html +++ b/airlock/templates/jobserver-error.html @@ -1,21 +1,21 @@ {% extends "base.html" %} {% block content %} -Job Server error
-
-
-Response Headers:
-
+ Job Server error
+
+
+ Response Headers:
+
{% for header, value in response.headers.items %}
- {{ header }}: {{ value }}
+ {{ header }}: {{ value }}
{% endfor %}
-
-
-
-Response Body:
-{% if type == "text/html" %}
-
-{% else %}
+
+
+
+ Response Body:
+ {% if type == "text/html" %}
+
+ {% else %}
{{ response.text }}
{% endif %}
diff --git a/airlock/templates/login.html b/airlock/templates/login.html
index 9f07b551..5aec049e 100644
--- a/airlock/templates/login.html
+++ b/airlock/templates/login.html
@@ -3,42 +3,42 @@
{% block metatitle %}Login | OpenSAFELY Airlock{% endblock metatitle %}
{% block content %}
-
-
- Login
-
+
+
+ Login
+
- {% #card title="Login with Single Use Token" subtitle="Log in from Level 4 environments with a Single Use Token" container=True class="md:col-span-2" %}
- {% if dev_users_file %}
- {% #alert variant="warning" title="Development login mode" class="mb-6" dismissible=True %}
- Use credentials specified in:
- {{ dev_users_file }}
- {% /alert %}
- {% endif %}
-
-
-
- You cannot access Github to login from Level 4. Instead, you
- must generate a single user token to log in with.
-
-
- To do so, you will need to login with Github on your usual
- browser, outside Level 4. Then click on the Account drop down
- on the top right, and click Settings. Then click the button
- "Generate Single User Token". You can then use that token to
- login on Level 4.
-
-
+ {% #button type="submit" variant="primary-outline" %}
+ Log in with token
+ {% /button %}
+
+
+
+ You cannot access Github to login from Level 4. Instead, you
+ must generate a single user token to log in with.
+
+
+ To do so, you will need to login with Github on your usual
+ browser, outside Level 4. Then click on the Account drop down
+ on the top right, and click Settings. Then click the button
+ "Generate Single User Token". You can then use that token to
+ login on Level 4.
+
+
{% /card %}
{% endblock content %}
diff --git a/airlock/templates/requests.html b/airlock/templates/requests.html
index 36503570..c6e741bb 100644
--- a/airlock/templates/requests.html
+++ b/airlock/templates/requests.html
@@ -2,22 +2,22 @@
{% block content %}
-{% #card title="Requests by "|add:request.user.username %}
- {% #list_group id="authored-requests" %}
- {% for request in authored_requests %}
- {% #list_group_item href=request.get_url %}{{ request.workspace }}: {{ request.status.name }}{% /list_group_item %}
- {% endfor %}
- {% /list_group %}
-{% /card %}
+ {% #card title="Requests by "|add:request.user.username %}
+ {% #list_group id="authored-requests" %}
+ {% for request in authored_requests %}
+ {% #list_group_item href=request.get_url %}{{ request.workspace }}: {{ request.status.name }}{% /list_group_item %}
+ {% endfor %}
+ {% /list_group %}
+ {% /card %}
-{% if request.user.output_checker %}
-{% #card title="Outstanding requests awaiting review" %}
- {% #list_group id="outstanding-requests" %}
- {% for request in outstanding_requests %}
- {% #list_group_item href=request.get_url %}{{ request.workspace }} by {{ request.author }}{% /list_group_item %}
- {% endfor %}
- {% /list_group %}
-{% /card %}
-{% endif %}
+ {% if request.user.output_checker %}
+ {% #card title="Outstanding requests awaiting review" %}
+ {% #list_group id="outstanding-requests" %}
+ {% for request in outstanding_requests %}
+ {% #list_group_item href=request.get_url %}{{ request.workspace }} by {{ request.author }}{% /list_group_item %}
+ {% endfor %}
+ {% /list_group %}
+ {% /card %}
+ {% endif %}
{% endblock content %}
diff --git a/airlock/templates/workspaces.html b/airlock/templates/workspaces.html
index 10490425..95a5a26f 100644
--- a/airlock/templates/workspaces.html
+++ b/airlock/templates/workspaces.html
@@ -1,11 +1,11 @@
{% extends "base.html" %}
{% block content %}
-{% #card title="Workspaces for "|add:request.user.username %}
- {% #list_group id="workspaces" %}
- {% for workspace in workspaces %}
- {% #list_group_item href=workspace.get_url %}{{ workspace.name }}{% /list_group_item %}
- {% endfor %}
- {% /list_group %}
-{% /card %}
+ {% #card title="Workspaces for "|add:request.user.username %}
+ {% #list_group id="workspaces" %}
+ {% for workspace in workspaces %}
+ {% #list_group_item href=workspace.get_url %}{{ workspace.name }}{% /list_group_item %}
+ {% endfor %}
+ {% /list_group %}
+ {% /card %}
{% endblock content %}
Job Server error
+
+
+ Response Headers:
+
{% for header, value in response.headers.items %}
- {{ header }}: {{ value }}
+ {{ header }}: {{ value }}
{% endfor %}
-
-
-
-Response Body:
-{% if type == "text/html" %}
-
-{% else %}
+
{{ header }}: {{ value }}
{{ header }}: {{ value }}
- Login -
++ Login +
- {% #card title="Login with Single Use Token" subtitle="Log in from Level 4 environments with a Single Use Token" container=True class="md:col-span-2" %} - {% if dev_users_file %} - {% #alert variant="warning" title="Development login mode" class="mb-6" dismissible=True %} - Use credentials specified in:-
{{ dev_users_file }}
- {% /alert %}
- {% endif %}
-
- - You cannot access Github to login from Level 4. Instead, you - must generate a single user token to log in with. -
-- To do so, you will need to login with Github on your usual - browser, outside Level 4. Then click on the Account drop down - on the top right, and click Settings. Then click the button - "Generate Single User Token". You can then use that token to - login on Level 4. -
-+ You cannot access Github to login from Level 4. Instead, you + must generate a single user token to log in with. +
++ To do so, you will need to login with Github on your usual + browser, outside Level 4. Then click on the Account drop down + on the top right, and click Settings. Then click the button + "Generate Single User Token". You can then use that token to + login on Level 4. +
+