diff options
Diffstat (limited to 'backend/templates/admin.html')
| -rw-r--r-- | backend/templates/admin.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/backend/templates/admin.html b/backend/templates/admin.html new file mode 100644 index 0000000..008827f --- /dev/null +++ b/backend/templates/admin.html @@ -0,0 +1,51 @@ +{{define "body"}} +<main id="content"> + <div class="introduction"> + <h1>Administration</h1> + <p> + Panel d'administration très simple. Il affiche les stats et possiblement les webmentions et autre contenu à + modérer. + </p> + </div> + <article> + <h2>Stats</h2> + <h3>Visits</h3> + <table> + <thead> + <tr> + <th>Target</th> + <th>Visits</th> + </tr> + </thead> + <tbody> + {{ range .Visits }} + <tr> + <td>{{ .Target }}</td> + <td>{{ .Visit }}</td> + </tr> + {{ end }} + </tbody> + </table> + <h3>Origin</h3> + <table> + <thead> + <tr> + <th>Origin</th> + <th>Target</th> + <th>Visits</th> + </tr> + </thead> + <tbody> + {{ range .Rows }} + <tr> + <td>{{ .Origin }}</td> + <td>{{ .Target }}</td> + <td>{{ .Visit }}</td> + </tr> + {{ end }} + </tbody> + </table> + <div class="pagination">{{ template "pagination" . }}</div> + </article> +</main> +{{end}} |
