show home on the footer, and edit notice when logged in
This commit is contained in:
parent
aeb0f9f824
commit
23f3a844b4
|
@ -71,11 +71,21 @@
|
|||
{{$cocUrl := urlToNotice "NoticeCodeOfConduct"}}
|
||||
{{$ppUrl := urlToNotice "NoticePrivacyPolicy"}}
|
||||
<footer class="mb-4 flex flex-row items-center justify-center divide-x divide-gray-300">
|
||||
<a
|
||||
href="{{urlTo "complete:index"}}"
|
||||
class="px-4 text-gray-500 hover:underline"
|
||||
>{{i18n "NavAdminLanding"}}</a>
|
||||
{{if $cocUrl}}
|
||||
<a href="{{$cocUrl}}" class="px-4 text-gray-500 hover:underline">{{i18n "NoticeCodeOfConduct"}}</a>
|
||||
<a
|
||||
href="{{$cocUrl}}"
|
||||
class="px-4 text-gray-500 hover:underline"
|
||||
>{{i18n "NoticeCodeOfConduct"}}</a>
|
||||
{{end}}
|
||||
{{if $ppUrl}}
|
||||
<a href="{{$ppUrl}}" class="px-4 text-gray-500 hover:underline">{{i18n "NoticePrivacyPolicy"}}</a>
|
||||
<a
|
||||
href="{{$ppUrl}}"
|
||||
class="px-4 text-gray-500 hover:underline"
|
||||
>{{i18n "NoticePrivacyPolicy"}}</a>
|
||||
{{end}}
|
||||
</footer>
|
||||
{{end}}
|
||||
|
|
|
@ -7,4 +7,13 @@
|
|||
<div class="markdown">
|
||||
{{.Content}}
|
||||
</div>
|
||||
|
||||
<div class="h-8"></div>
|
||||
{{if is_logged_in}}
|
||||
<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}}
|
Loading…
Reference in New Issue