-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmoderation-log.html
32 lines (32 loc) · 1016 Bytes
/
moderation-log.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{ template "head" . }}
<main>
<h1>{{ .Title }}</h1>
{{ if .LoggedIn }}
<section>
{{ if len .Data.Log | eq 100 }}
<p> {{ "ModLogNoActions" | translate }} </p>
{{ else }}
<p>{{ "ModLogExplanation" | translate }} {{ if .IsAdmin }} {{ "ModLogExplanationAdmin" | translate }} {{ end }} </p>
<style>
section ul { padding-left: 0; }
section ul li {
list-style-type: none;
border: darkred solid 1px;
}
section ul > li:nth-of-type(2n) {
color: wheat;
background: darkred;
}
</style>
<ul>
{{ range $index, $entry := .Data.Log }}
<li> {{ $entry | tohtml }} </li>
{{ end }}
</ul>
</section>
{{ end }}
{{ else }}
<p> {{ "ModLogOnlyLoggedInMayView" | translate }} </p>
{{ end }}
</main>
{{ template "footer" . }}