dashboard.html
HTML document, ASCII text
1{% extends "default.html" %} 2{% block title %}Dashboard | Echo Tracker{% endblock %} 3{% set active = "dashboard" %} 4{% block content %} 5<main> 6<h1>Dashboard</h1> 7{% if session.get("username") %} 8{% if bugs %} 9<h2>Endpoints with reported bugs</h2> 10{% endif %} 11{% for bug in bugs %} 12<div class="alert alert-{{ bug.level }}"> 13<a href="/app/{{ bug.application.id }}/">{{ bug.application.name }}</a> - 14{{ bug.name }} 15</div> 16{% endfor %} 17<a class="button" style="width:100%; margin: 1em 0;" tabindex="0" href="/new-app"> 18<iconify-icon icon="mdi:plus"></iconify-icon> 19Create an app 20</a> 21{% endif %} 22<!-- 23<div class="app-card"> 24<h2>Application Name</h2> 25<p class="app-info app-info-ok"> 26Operational 27</p> 28<div class="app-uptime"> 29<div class="uptime-bar uptime-bar-ok"></div> 30<div class="uptime-bar uptime-bar-down"></div> 31<div class="uptime-bar uptime-bar-broken"></div> 32<div class="uptime-bar uptime-bar-broken"></div> 33<div class="uptime-bar uptime-bar-ok"></div> 34<div class="uptime-bar uptime-bar-ok"></div> 35<div class="uptime-bar uptime-bar-ok"></div> 36<div class="uptime-bar uptime-bar-broken"></div> 37<div class="uptime-bar uptime-bar-broken"></div> 38<div class="uptime-bar uptime-bar-broken"></div> 39<div class="uptime-bar uptime-bar-ok"></div> 40<div class="uptime-bar uptime-bar-ok"></div> 41<div class="uptime-bar uptime-bar-ok"></div> 42<div class="uptime-bar uptime-bar-ok"></div> 43<div class="uptime-bar uptime-bar-ok"></div> 44<div class="uptime-bar uptime-bar-ok"></div> 45<div class="uptime-bar uptime-bar-ok"></div> 46<div class="uptime-bar uptime-bar-ok"></div> 47<div class="uptime-bar uptime-bar-down"></div> 48<div class="uptime-bar uptime-bar-down"></div> 49<div class="uptime-bar uptime-bar-ok"></div> 50<div class="uptime-bar uptime-bar-ok"></div> 51<div class="uptime-bar uptime-bar-ok"></div> 52<div class="uptime-bar uptime-bar-ok"></div> 53</div> 54</div> 55--> 56{% for app in apps %} 57<a href="/app/{{ app.id }}" class="quiet-link"> 58<div class="app-card"> 59<h2>{{ app.name }}</h2> 60</div> 61</a> 62{% endfor %} 63</main> 64{% endblock %}