acoeur/themes/acoeur/layouts/_default/users.html

47 lines
1.6 KiB
HTML
Raw Normal View History

2022-10-26 23:12:29 +02:00
{{ define "main" }}
2022-11-27 21:55:49 +01:00
<section class="pa3 pa4-ns nested-copy-line-height
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
2022-10-26 23:12:29 +02:00
<aside id="actions" class="w-30-l mt4-l fr tc">
2022-11-13 16:50:48 +01:00
{{ if .Parent.IsHome }}
2022-11-16 22:47:33 +01:00
<button id="create"
2022-12-29 20:47:04 +01:00
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
2022-11-16 22:47:33 +01:00
{{ T (print .Section ".create") }}
</button>
2022-12-29 20:47:04 +01:00
2022-11-13 16:50:48 +01:00
{{ else if .Parent.Parent.IsHome }}
2022-12-29 20:47:04 +01:00
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
<label for="cover">{{ T (print .Section ".cover") }}</label>
</button>
2022-12-29 22:01:40 +01:00
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
2022-12-29 20:47:04 +01:00
<button id="delete"
2022-12-29 20:47:04 +01:00
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
2022-11-16 22:47:33 +01:00
data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }}
</button>
2022-11-23 21:56:39 +01:00
<a href="mailto:?subject=invitation&body={{.Content | plainify}}"
2022-12-29 20:47:04 +01:00
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray"
2022-11-23 21:56:39 +01:00
id="invitation">
2022-11-16 22:47:33 +01:00
{{ T (print .Section ".send") }}
</a>
2022-11-23 21:56:39 +01:00
<span id="barcode" />
2022-10-26 23:12:29 +02:00
{{ end }}
</aside>
{{ with .Content }}
2022-11-07 22:30:43 +01:00
<section id="content"
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
2022-10-26 23:12:29 +02:00
{{- . -}}
</section>
{{ end }}
{{ range (.Paginate .RegularPagesRecursive).Pages }}
{{ .Render "summary-with-image" }}
{{ end }}
2022-10-26 23:12:29 +02:00
{{- template "_internal/pagination.html" . -}}
</section>
2022-10-26 23:12:29 +02:00
{{ end }}