39 lines
1.2 KiB
Cheetah
39 lines
1.2 KiB
Cheetah
<!--
|
|
SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
|
|
|
|
SPDX-License-Identifier: CC-BY-4.0
|
|
-->
|
|
|
|
{{ define "title" }}{{i18n "NoticeList"}}{{ end }}
|
|
{{ define "content" }}
|
|
<div class="container mx-auto">
|
|
<h1
|
|
class="text-3xl tracking-tight font-black text-black mt-2 mb-4"
|
|
>{{i18n "NoticeList"}}</h1>
|
|
|
|
<p id="welcome" class="my-2">{{i18n "NoticeListWelcome"}}</p>
|
|
|
|
{{ template "flashes" . }}
|
|
|
|
{{range .AllNotices}}
|
|
<div class="my-4">
|
|
<h3 class="text-xl text-black">{{i18n .Name.String}}</h3>
|
|
|
|
{{range .Notices}}
|
|
<a
|
|
href="{{urlTo "complete:notice:show" "id" .ID}}"
|
|
class="inline-block rounded-full py-1 px-3 text-sm font-bold text-white my-2 bg-blue-500 hover:bg-blue-700"
|
|
>{{.Language}}</a>
|
|
{{end}}
|
|
|
|
{{if and is_logged_in member_is_elevated }}
|
|
<a
|
|
href="{{urlTo "admin:notice:translation:draft" "name" .Name.String}}"
|
|
class="inline-block rounded-full py-1 px-3 text-sm text-gray-500 font-bold border-2 border-dashed box-content border-gray-200 hover:border-transparent hover:bg-white hover:shadow"
|
|
>{{i18n "NoticeAddTranslation"}}</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|