Upgrade stats page
This commit is contained in:
parent
d8b32c25c0
commit
c0238ed915
@ -27,4 +27,9 @@ async function display(data) { // Parses and displays data from API
|
|||||||
document.getElementById('meta').textContent = dat.meta || '0'
|
document.getElementById('meta').textContent = dat.meta || '0'
|
||||||
document.getElementById('pis').textContent = dat.pis
|
document.getElementById('pis').textContent = dat.pis
|
||||||
document.getElementById('ver-dbman').textContent = ver.dbmanager || 'Unknown'
|
document.getElementById('ver-dbman').textContent = ver.dbmanager || 'Unknown'
|
||||||
|
document.getElementById('user_count').textContent = data.count.users || 'Unknown'
|
||||||
|
document.getElementById('reg_count').textContent = data.count.reg || '0'
|
||||||
|
document.getElementById('pis_count').textContent = data.count.pis || 'Unknown'
|
||||||
|
document.getElementById('corpus_count').textContent = data.count.corpus || 'Unknown'
|
||||||
|
document.getElementById('stations_count').textContent = data.count.stations || 'Unknown'
|
||||||
}
|
}
|
26
stat.html
26
stat.html
@ -50,6 +50,32 @@
|
|||||||
<td id="pis"></td>
|
<td id="pis"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<table style="margin:auto;text-align:center;">
|
||||||
|
<tr>
|
||||||
|
<th>Database</th>
|
||||||
|
<th>Entry Count</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Users</td>
|
||||||
|
<td id="user_count"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Pending Registrations</td>
|
||||||
|
<td id="reg_count"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>PIS Codes</td>
|
||||||
|
<td id="pis_count"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CORPUS Entries</td>
|
||||||
|
<td id="corpus_count"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Station Codes</td>
|
||||||
|
<td id="stations_count"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
<br><br>
|
<br><br>
|
||||||
<table style="margin:auto;text-align:center;">
|
<table style="margin:auto;text-align:center;">
|
||||||
<tr>
|
<tr>
|
||||||
|
Reference in New Issue
Block a user