development into master #1
@ -6,10 +6,7 @@
|
||||
|
||||
<title>{% block title %}Meine Links{% endblock %}</title>
|
||||
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
/* common styles */
|
||||
@ -31,14 +28,13 @@
|
||||
.card {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
.locked { background-color:rgb(255, 255, 255); }
|
||||
.locked { background-color:#eee; }
|
||||
.unlocked { background-color: #fff3cd; }
|
||||
</style>
|
||||
|
||||
{% block head_extra %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<script src="{{ url_for('static', filename='functions.js') }}"></script>
|
||||
|
||||
<!-- Navigation Bar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary mb-3">
|
||||
@ -67,5 +63,6 @@
|
||||
{% block scripts %}{% endblock %}
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='functions.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -145,7 +145,7 @@
|
||||
<div class="col-md-6 mb-3">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Anzahl Nutzer</h5>
|
||||
<h5 class="card-title">Anzahl Geräte</h5>
|
||||
<canvas id="distinctDeviceChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
@ -246,7 +246,6 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script>
|
||||
// Data passed from the backend as JSON
|
||||
|
||||
@ -35,9 +35,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<!-- jQuery and Bootstrap JS -->
|
||||
<!-- jQuery -->
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
const ALPHABET = {{ alphabet|tojson }};
|
||||
let data = [];
|
||||
@ -60,7 +59,7 @@
|
||||
const expired = validityISO ? (new Date(validityISO) < new Date()) : false;
|
||||
|
||||
// Build card HTML
|
||||
let html = `<div class="card mb-3 ${cls}" data-secret="${key}"><div class="card-body">`;
|
||||
let html = `<div class="card mb-3" data-secret="${key}"><div class="card-body ${cls}">`;
|
||||
// Show exclamation if expired
|
||||
html += `<h5>Link${expired ? ' <span class="text-danger fw-bold"> ! abgelaufen !</span>' : ''}</h5>`;
|
||||
html += `<div class="mb-2">Secret: <input class="form-control" type="text" value="${rec.secret}" ${isEdit?'':'readonly'} data-field="secret"></div>`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user