Group management first setup

This commit is contained in:
echarp 2023-01-17 22:58:16 +01:00
parent 6c318eaee7
commit 8db79565f6
11 changed files with 74 additions and 53 deletions

View File

@ -1,4 +1,4 @@
title: 📖 moteur acoeur title: moteur acoeur
languageCode: fr languageCode: fr
theme: [acoeur, ananke] theme: [acoeur, ananke]

View File

@ -3,11 +3,10 @@
/pages/doc/vouloir.md:title: Vouloir /pages/doc/vouloir.md:title: Vouloir
/pages/doc/pouvoir.md:title: Pouvoir /pages/doc/pouvoir.md:title: Pouvoir
/pages/doc/intro.md:title: Introduction /pages/doc/intro.md:title: Introduction
/pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 3 /pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 03
/pages/1er-quiz/b80fcc08-170e-4422-8498-ae1f97b47eda.md:title: Chapitre 5 /pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 06
/pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 6 /pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 08
/pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 8 /pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 09
/pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 9
/pages/1er-quiz/e9745d63-1c31-42b4-a30a-dff7aae19059.md:title: Chapitre 10 /pages/1er-quiz/e9745d63-1c31-42b4-a30a-dff7aae19059.md:title: Chapitre 10
/pages/1er-quiz/0ee87528-a6e2-4c12-9d37-3046a9855685.md:title: Chapitre 11 /pages/1er-quiz/0ee87528-a6e2-4c12-9d37-3046a9855685.md:title: Chapitre 11
/pages/1er-quiz/fff60373-d04a-4923-8b0d-2836668cdf62.md:title: Chapitre 12 /pages/1er-quiz/fff60373-d04a-4923-8b0d-2836668cdf62.md:title: Chapitre 12
@ -15,12 +14,12 @@
/pages/1er-quiz/235ce274-b98f-4f39-b363-ed8951d85699.md:title: Chapitre 15 /pages/1er-quiz/235ce274-b98f-4f39-b363-ed8951d85699.md:title: Chapitre 15
/pages/1er-quiz/9c978c3a-801e-4c09-b4ce-8b2d6cb233b0.md:title: Chapitre 16 /pages/1er-quiz/9c978c3a-801e-4c09-b4ce-8b2d6cb233b0.md:title: Chapitre 16
/pages/1er-quiz/f8dfe972-1995-4f4e-9866-97306228768c.md:title: Chapitre 17 /pages/1er-quiz/f8dfe972-1995-4f4e-9866-97306228768c.md:title: Chapitre 17
/pages/1er-quiz/283b1ec8-bfa7-48f3-8ce2-9d8f7487fd36.md:title: Chapitre 7 /pages/1er-quiz/283b1ec8-bfa7-48f3-8ce2-9d8f7487fd36.md:title: Chapitre 07
/pages/1er-quiz/c4611613-92e4-4b4b-b9af-a246b86a5a22.md:title: Chapitre 4 /pages/1er-quiz/c4611613-92e4-4b4b-b9af-a246b86a5a22.md:title: Chapitre 04
/pages/1er-quiz/0a24b36c-32b0-40b3-aa8c-d13000e8e4cb.md:title: Félicitations /pages/1er-quiz/0a24b36c-32b0-40b3-aa8c-d13000e8e4cb.md:title: Félicitations
/pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c.md:title: Chapitre 2 /pages/1er-quiz/9ade4891-d0f3-4644-8d4d-4e787aeaf22c.md:title: Chapitre 02
/pages/1er-quiz/erreur.md:title: Ne te décourage pas /pages/1er-quiz/erreur.md:title: Ne te décourage pas
/pages/1er-quiz/1fafe4b4-2519-438f-b69a-e14b8616eaff.md:title: Ne te décourage pas
/pages/1er-quiz/65c8096f-c940-4002-90af-52ac3c3c6cd4.md:title: Chapitre 13 /pages/1er-quiz/65c8096f-c940-4002-90af-52ac3c3c6cd4.md:title: Chapitre 13
/pages/1er-quiz/start.md:title: Chapitre 1 /pages/1er-quiz/start.md:title: Chapitre 01
/pages/1er-quiz/b80fcc08-170e-4422-8498-ae1f97b47eda.md:title: Chapitre 05
/about.md:title: "À propos" /about.md:title: "À propos"

View File

@ -2,4 +2,6 @@
title: 1er quiz title: 1er quiz
ac_create: ac_create:
- /pages/1er-quiz/start - /pages/1er-quiz/start
ac_errors: 0
ac_total: 2
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: Chapitre 1 title: Chapitre 01
description: Le survivant description: Le survivant
featured_image: /../../../../../assets/Swallow_flying_drinking.jpg featured_image: /../../../../../assets/Swallow_flying_drinking.jpg
ac_choices: ac_choices:

View File

@ -2,4 +2,6 @@
title: 1er quiz title: 1er quiz
ac_create: ac_create:
- /pages/1er-quiz/start - /pages/1er-quiz/start
ac_errors: 1
ac_total: 14
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: Chapitre 1 title: Chapitre 01
description: Le survivant description: Le survivant
featured_image: /../../../../../assets/Swallow_flying_drinking.jpg featured_image: /../../../../../assets/Swallow_flying_drinking.jpg
ac_choices: ac_choices:

View File

@ -7,4 +7,4 @@ ac_create:
groups: test groups: test
--- ---
Texte Texte

View File

@ -60,9 +60,11 @@ body #content:focus {
background-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.5);
} }
.no-text .summary,
.links .assets, .links .assets,
body.pages header time, body.pages header time,
.author-only { display: none; } .author-only { display: none; }
body.author .author-only { display: initial; } body.author .author-only { display: initial; }
body.author .ac_choices .destination { body.author .ac_choices .destination {
display: none; display: none;

View File

@ -9,6 +9,7 @@ pages:
users: users:
create: 👤 Créer un nouveau joueur create: 👤 Créer un nouveau joueur
cover: 🎭 Avatar cover: 🎭 Avatar
group: 🏠 Groupe
delete: 🗑 Supprimer joueur delete: 🗑 Supprimer joueur
send: 📧 Envoyer invitation send: 📧 Envoyer invitation
assets: assets:

View File

@ -29,9 +29,9 @@
{{ .Title }} {{ .Title }}
</a> </a>
</h1> </h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> <p class="f6 f5-l lh-copy nested-copy-line-height nested-links summary">
{{ .Summary }} {{ .Summary }}
</div> </p>
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1"> <a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">
{{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }} {{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }}
</a> </a>

View File

@ -1,46 +1,61 @@
{{ define "main" }} {{ define "main" }}
<section class="pa3 pa4-ns nested-copy-line-height <section class="pa3 pa4-ns nested-copy-line-height
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}"> {{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
<aside id="actions" class="w-30-l mt4-l fr tc"> <aside id="actions" class="w-30-l mt4-l fr tc">
{{ if .Parent.IsHome }} {{ if .Parent.IsHome }}
<button id="create" <button id="create"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"> class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }} {{ T (print .Section ".create") }}
</button> </button>
{{ else if .Parent.Parent.IsHome }} {{ else if .Parent.Parent.IsHome }}
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"> <label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover">
<label for="cover">{{ T (print .Section ".cover") }}</label> {{ T (print .Section ".cover") }}
</button> </label>
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/> <input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
<button id="delete" <label class="dn" for="groups">
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" {{ T (print .Section ".group") }}
data-confirm="{{ T (print .Section ".delete") }}?"> </label>
{{ T (print .Section ".delete") }} <select id="groups" name="groups">
</button> {{ range (.GetTerms "groups") }}
{{- $url := split .Permalink "/" -}}
{{- $urlPageSlug := index $url (sub (len $url) 2) -}}
<option value="{{ $urlPageSlug }}">{{ .Title }}</option>
{{ end }}
</select>
<a href="mailto:?subject=invitation&body={{.Content | plainify}}" <button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray" class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
id="invitation"> data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".send") }} {{ T (print .Section ".delete") }}
</a> </button>
<span id="barcode" /> <a href="mailto:?subject=invitation&body={{.Content | plainify}}"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray"
id="invitation">
{{ T (print .Section ".send") }}
</a>
<span id="barcode" />
{{ end }}
</aside>
{{ with .Content }}
<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" }}">
{{- . -}}
</section>
{{ end }} {{ end }}
</aside>
{{ with .Content }} <section class="flex no-text">
<section id="content" {{ range .Pages }}
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> <span class="w-third h8">
{{- . -}} {{ .Render "summary-with-image" }}
</span>
{{ end }}
</section>
{{- template "_internal/pagination.html" . -}}
</section> </section>
{{ end }}
{{ range (.Paginate .RegularPagesRecursive).Pages }}
{{ .Render "summary-with-image" }}
{{ end }}
{{- template "_internal/pagination.html" . -}}
</section>
{{ end }} {{ end }}