Create repo template
This commit is contained in:
parent
77550137f9
commit
3821a52092
|
@ -6,6 +6,7 @@
|
|||
{% block script %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.4.1/dist/chart.min.js"
|
||||
integrity="sha256-GMN9UIJeUeOsn/Uq4xDheGItEeSpI5Hcfp/63GclDZk=" crossorigin="anonymous"></script>
|
||||
{% include "borg/repo-template.html" %}
|
||||
{{ hour_list|json_script:"hour_list" }}
|
||||
<script src="{% static 'borg/js/chart.js' %}"></script>
|
||||
<script src="{% static 'borg/js/index.js' %}"></script>
|
||||
|
|
22
borgweb/borg/templates/borg/repo-template.html
Normal file
22
borgweb/borg/templates/borg/repo-template.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<script id="repo-template" type="text/x-custom-template">
|
||||
<div style="width: 600px;" class="repo-container shadow rounded overflow-hidden">
|
||||
<div class="row me-1 overflow-hidden text-truncate">
|
||||
<h2 class="repo-label h2">
|
||||
<small class="repo-location text-muted"></small>
|
||||
</h2>
|
||||
</div>
|
||||
<dl class="att-label row ps-3">
|
||||
<dt class="col-4">Latest backup:</dt>
|
||||
<dd class="repo-latest-backup col-8"></dd>
|
||||
</dl>
|
||||
<dl class="att-label row ps-3">
|
||||
<dt class="col-4">Size:</dt>
|
||||
<dd class="repo-size col-8"></dd>
|
||||
</dl>
|
||||
<dl class="att-label row ps-3">
|
||||
<dt class="col-4">Recent errors:</dt>
|
||||
<dd class="repo-recent-errors col-8"></dd>
|
||||
</dl>
|
||||
</dl>
|
||||
</div>
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user