Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard Improvements #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions Dashboard/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<div class="container">


<h1>Scan8</h1>
<button type="button" name="button" class="btn btn-outline-secondary" onclick="openUploader()">New Scan</button>

<h4>Queued Scans</h4>
<div class="list">
<h1 class="text-center mb-3 bg-light py-2 border border-secondary">Scan8</h1>

<h3 class="mt-3 mb-2">Queued Scans</h3>
<ol type="1" class="list">
{% for item in prequeued %}
<li class="my-1">
<div class="indexRow row">
<div class="col-sm">
<h6>Scan #{{ item["_id"] }}</h6>
Expand All @@ -41,9 +41,11 @@ <h6>Number of files: {{ item['files']['total'] }}</h6>
</div>
</div>
</div>
</li>
{% endfor %}

{% for item in queued %}
<li class="my-1">
<div class="indexRow row">
<div class="col-sm">
<h6>Scan #{{ item["_id"] }}</h6>
Expand All @@ -59,12 +61,14 @@ <h6>Number of files: {{ item['files']['total'] }}</h6>
</div>
</div>
</div>
</li>
{% endfor %}
</div>
</ol>

<h4>Running Scans</h4>
<div class="list">
<h3 class="mt-3 mb-2">Running Scans</h3>
<ol type="1" class="list">
{% for item in running %}
<li class="my-1">
<div class="indexRow row">
<div class="col-sm">
<h6>Scan #{{ item["_id"] }}</h6>
Expand All @@ -80,12 +84,14 @@ <h6>Number of files: {{ item['files']['total'] }}</h6>
</div>
</div>
</div>
</li>
{% endfor %}
</div>

<h4>Completed Scans</h4>
<div class="list">
</ol>
<h3 class="mt-3 mb-2">Completed Scans</h3>
<ol type="1" class="list">
{% for item in completed %}
<li class="my-1">
<div class="indexRow row">
<div class="col-sm">
<h6>Scan #{{ item["_id"] }}</h6>
Expand All @@ -101,10 +107,14 @@ <h6>Number of files: {{ item['files']['total'] }}</h6>
</div>
</div>
</div>
</li>
{% endfor %}
</div>
</ol>
<div class="text-center my-4">
<button type="button" name="button" class="btn btn-outline-success" onclick="openUploader()">New Scan</button>
</div>

</div>

<script>
function openUploader() {
window.location = "{{ newScanUrl }}";
Expand Down