1+ {% extends 'base.html' %}
2+
3+ {% block title %}clients{% endblock %}
4+
5+ {% block style %}
6+ th {
7+ white-space: nowrap;
8+ }
9+ {% endblock %}
10+
11+ {% block content %}
12+ {% if error %}
13+ < article class ="message is-danger ">
14+ < div class ="message-header ">
15+ Whoops! Something went wrong...
16+ </ div >
17+ < div class ="message-body ">
18+ {{ error }}
19+ </ div >
20+ </ article >
21+ {% else %}
22+ < nav class ="level ">
23+ < div class ="level-item has-text-centered ">
24+ < div >
25+ < p class ="heading "> Clients</ p >
26+ < p class ="title "> {{ count_clients }}</ p >
27+ </ div >
28+ </ div >
29+ < div class ="level-item has-text-centered ">
30+ < div >
31+ < p class ="heading "> Windows</ p >
32+ < p class ="title "> {{ count_clients_windows }}</ p >
33+ </ div >
34+ </ div >
35+ < div class ="level-item has-text-centered ">
36+ < div >
37+ < p class ="heading "> Office</ p >
38+ < p class ="title "> {{ count_clients_office }}</ p >
39+ </ div >
40+ </ div >
41+ < div class ="level-item has-text-centered ">
42+ < div >
43+ < p class ="heading "> Products</ p >
44+ < p class ="title "> < a href ="/products "> {{ count_projects }}</ a > </ p >
45+ </ div >
46+ </ div >
47+ </ nav >
48+
49+ < hr >
50+
51+ {% if clients %}
52+ < table class ="table is-striped is-hoverable is-fullwidth ">
53+ < thead >
54+ < tr >
55+ < th > Client ID</ th >
56+ < th > Machine Name</ th >
57+ < th > Application ID</ th >
58+ < th > < abbr title ="Stock Keeping Unit "> SKU</ abbr > ID</ th >
59+ < th > License Status</ th >
60+ < th > Last Seen</ th >
61+ < th > KMS < abbr title ="Enhanced Privacy ID "> EPID</ abbr > </ th >
62+ < th > Seen Count</ th >
63+ </ tr >
64+ </ thead >
65+ < tbody >
66+ {% for client in clients %}
67+ < tr >
68+ < th > < pre class ="clientMachineId "> {{ client.clientMachineId }}</ pre > </ th >
69+ < td class ="machineName "> {{ client.machineName }}</ td >
70+ < td > {{ client.applicationId }}</ td >
71+ < td > {{ client.skuId }}</ td >
72+ < td > {{ client.licenseStatus }}</ td >
73+ < td class ="convert_timestamp "> {{ client.lastRequestTime }}</ td >
74+ < td > {{ client.kmsEpid }}</ td >
75+ < td > {{ client.requestCount }}</ td >
76+ </ tr >
77+ {% endfor %}
78+ </ tbody >
79+ </ table >
80+ {% else %}
81+ < article class ="message is-warning ">
82+ < div class ="message-header ">
83+ < p > Whoops?</ p >
84+ </ div >
85+ < div class ="message-body ">
86+ This page seems to be empty, because no clients are available. Try to use the server with a compartible client to add it to the database.
87+ </ div >
88+ </ article >
89+ {% endif %}
90+ {% endif %}
91+ {% endblock %}
0 commit comments