Add offline and ntfy alerts
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -55,6 +55,18 @@
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<div class="ms-auto d-flex align-items-center">
|
||||
<div class="dropdown me-3">
|
||||
<button class="btn btn-link position-relative p-1" id="alert-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="System alerts">
|
||||
<i class="fas fa-bell fa-fw"></i>
|
||||
<span id="alert-count" class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger" hidden></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-end shadow" id="alert-menu" aria-labelledby="alert-toggle">
|
||||
<h6 class="dropdown-header">System alerts</h6>
|
||||
<div id="alert-notifications">
|
||||
<div class="dropdown-item-text text-muted small">Loading...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<span id="index-pp" class="d-none d-sm-inline me-2 text-gray-600 small">{{ account.name }}</span>
|
||||
<img class="border rounded-circle img-profile" src="{{ url_for('static', filename='img/yaris.png') }}" alt="">
|
||||
</div>
|
||||
@@ -78,6 +90,7 @@
|
||||
<script src="{{ url_for('static', filename='js/bs-init.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/theme.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/data-list.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/alerts.js') }}"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user