go-ssb-room/web/templates/notice/show.tmpl

29 lines
789 B
Cheetah

<!--
SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
SPDX-License-Identifier: CC-BY-4.0
-->
{{ define "title" }}{{.Title}}{{ end }}
{{ define "content" }}
{{ template "flashes" . }}
<h1
class="text-3xl tracking-tight font-black text-black mt-2 mb-4"
>{{.Title}}</h1>
<div class="markdown">
{{.Content}}
</div>
<div class="h-8"></div>
{{if and is_logged_in member_is_elevated }}
<a
id="edit-notice"
href="{{urlTo "admin:notice:edit" "id" .ID}}"
class="self-start shadow rounded px-4 h-8 flex flex-row justify-center items-center text-gray-100 bg-pink-600 hover:bg-pink-700 focus:outline-none focus:ring-2 focus:ring-pink-600 focus:ring-opacity-50"
>{{i18n "NoticeEditTitle"}}</a>
{{end}}
{{end}}