mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
captcha stats
This commit is contained in:
@@ -27,4 +27,5 @@
|
||||
|
||||
.inner-container {
|
||||
@include inner-container;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@@ -30,14 +30,6 @@
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="secondary-menu__item">
|
||||
<a class="secondary-menu__item-link" href="<.= crate::PAGES.panel.sitekey.list .>">
|
||||
<img class="secondary-menu__icon" src="<.= crate::BAR_CHART.0 .>" alt="<.= crate::BAR_CHART.1 .>" />
|
||||
<div class="secondary-menu__item-name">
|
||||
Statistics
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="secondary-menu__item">
|
||||
<a class="secondary-menu__item-link" href="<.= crate::PAGES.panel.settings.home .>">
|
||||
<img class="secondary-menu__icon" src="<.= crate::SETTINGS_ICON.0 .>" alt="<.= crate::SETTINGS_ICON.1 .>" />
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
.notification__table {
|
||||
@include table;
|
||||
margin: auto;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
.notification__title-text {
|
||||
|
||||
@@ -4,4 +4,11 @@
|
||||
<. for (count, level) in levels.iter().enumerate() { .>
|
||||
<. include!("./existing-level.html"); .>
|
||||
<. } .>
|
||||
<. include!("./__form-bottom.html"); .>
|
||||
<./* synchronise with "./__form-bottom.html" Lines below should break form */.>
|
||||
</form>
|
||||
<. include!("./stats.html"); .>
|
||||
</div>
|
||||
<!-- end of container -->
|
||||
|
||||
</main>
|
||||
<. include!("../../../components/footers.html"); .>
|
||||
|
||||
26
templates/panel/sitekey/view/stats.html
Normal file
26
templates/panel/sitekey/view/stats.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="sitekey__stats-container">
|
||||
<. let tables = [("Configuration Fetches", &stats.config_fetches), ("Proofs generated", &stats.solves), ("Grants Verified", &stats.confirms)]; .>
|
||||
<. for table in tables.iter() { .>
|
||||
<table class="notification__table">
|
||||
<thead class="notification__heading">
|
||||
<tr>
|
||||
<th colspan="4" class="notification__title-text"><.= table.0 .></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="notification__body">
|
||||
<. for (count, val) in table.1.iter().enumerate() { .>
|
||||
<tr class="notification__item">
|
||||
<td>
|
||||
<h3 class="notification__item-heading">
|
||||
<.= count + 1 .>
|
||||
</h3>
|
||||
</td>
|
||||
<td>
|
||||
<p class="notification__item-text"><.= val.date() .></p>
|
||||
</td>
|
||||
</tr>
|
||||
<. } .>
|
||||
</tbody>
|
||||
</table>
|
||||
<. }; .>
|
||||
</div>
|
||||
Reference in New Issue
Block a user