cerca

lean forum software (pmc local branch)
git clone http://git.permacomputing.net/repos/cerca.git # read-only access
Log | Files | Refs | README | LICENSE

moderation-log.html (1016B)


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