This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
staxman-old/templates/stack/get-one.html

102 lines
1.8 KiB
HTML
Raw Normal View History

2023-11-18 19:51:10 +00:00
{% extends "base.html" %}
2023-11-19 14:08:47 +00:00
{% block title %}Stack {{stack_name}}{% endblock %}
2023-11-18 19:51:10 +00:00
{% block content %}
<main>
2023-11-18 22:17:05 +00:00
<h1>Stack details for <span class="stack-name">{{stack_name}}</span></h1>
<h2>Status</h2>
<table class="containers">
<thead>
<tr>
<th>Name</th>
<th>State</th>
<th>Image</th>
</tr>
</thead>
<tbody>
{% for container in containers %}
<tr>
2023-11-18 22:38:19 +00:00
<td><a href="/container/{{container.name}}">{{container.name}}</a></td>
2023-11-18 22:17:05 +00:00
<td class="status {{container.state}}">{{container.state}}</td>
<td>{{container.image}}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Editor</h2>
<textarea id="editor">{{file_contents}}</textarea>
2023-11-18 19:51:10 +00:00
</main>
2023-11-18 22:17:05 +00:00
<style scoped>
main {
display: flex;
flex-direction: column;
gap: 1rem;
}
h2 {
text-transform: uppercase;
margin: 0;
padding: 0;
}
pre {
margin: 0;
padding: 0;
}
.containers {
background-color: #171625;
border: 3px solid #5958B1;
border-radius: 3px;
& th,
& td {
padding: 3px 5px;
}
& th {
font-weight: bold;
}
& thead {
background-color: #202248;
}
& .status {
text-align: center;
font-weight: bold;
color: white;
&.exited {
background-color: #E5484D;
}
&.running {
background-color: #46A758;
}
}
}
.stack-name {
color: #E796F3;
}
.ace_editor {
min-height: 50vh;
border: 3px solid #5958B1;
border-radius: 3px;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.31.2/ace.min.js"
integrity="sha512-4qIbBlcJOvbOmEB50FfnviJ9jOCen2yhi4skodkbTLU/uJJdULPxlX2R9Enf1oOBleUK9KD3fGmMcnItFQdNeA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/dracula");
editor.session.setMode("ace/mode/nix");
</script>
2023-11-18 19:51:10 +00:00
{% endblock %}