diff options
| author | William Hergès <william@herges.fr> | 2026-01-16 22:05:19 +0100 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2026-01-16 22:05:19 +0100 |
| commit | 6ab3a7bd5640623aeb7847f1eb2f1077d8e777f3 (patch) | |
| tree | 87ace5305cbf4aefc67fdbe407ae94e673845c45 /backend/templates/admin.html | |
| parent | f67c350197e1c46887baf67398445e2b47a8f067 (diff) | |
style(html): use prettier plugin for go html
Diffstat (limited to 'backend/templates/admin.html')
| -rw-r--r-- | backend/templates/admin.html | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/backend/templates/admin.html b/backend/templates/admin.html index 008827f..c4c83c5 100644 --- a/backend/templates/admin.html +++ b/backend/templates/admin.html @@ -1,51 +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}} +{{ 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 }} |
