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
theme: [acoeur, ananke]

View File

@ -3,11 +3,10 @@
/pages/doc/vouloir.md:title: Vouloir
/pages/doc/pouvoir.md:title: Pouvoir
/pages/doc/intro.md:title: Introduction
/pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 3
/pages/1er-quiz/b80fcc08-170e-4422-8498-ae1f97b47eda.md:title: Chapitre 5
/pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 6
/pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 8
/pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 9
/pages/1er-quiz/cff71434-fdaf-468f-838c-067059979299.md:title: Chapitre 03
/pages/1er-quiz/7c038015-c989-4024-a3cf-14b8557fdb0c.md:title: Chapitre 06
/pages/1er-quiz/e0391bfd-e794-49d8-a2f9-76802fed3b52.md:title: Chapitre 08
/pages/1er-quiz/91b5935e-6a59-447f-afeb-cb7cc2e5bf1c.md:title: Chapitre 09
/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/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/9c978c3a-801e-4c09-b4ce-8b2d6cb233b0.md:title: Chapitre 16
/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/c4611613-92e4-4b4b-b9af-a246b86a5a22.md:title: Chapitre 4
/pages/1er-quiz/283b1ec8-bfa7-48f3-8ce2-9d8f7487fd36.md:title: Chapitre 07
/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/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/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/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"

View File

@ -2,4 +2,6 @@
title: 1er quiz
ac_create:
- /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
featured_image: /../../../../../assets/Swallow_flying_drinking.jpg
ac_choices:

View File

@ -2,4 +2,6 @@
title: 1er quiz
ac_create:
- /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
featured_image: /../../../../../assets/Swallow_flying_drinking.jpg
ac_choices:

View File

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

View File

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

View File

@ -29,9 +29,9 @@
{{ .Title }}
</a>
</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 }}
</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">
{{ $.Param "read_more_copy" | default (i18n "readMore") | humanize }}
</a>

View File

@ -9,11 +9,22 @@
</button>
{{ else if .Parent.Parent.IsHome }}
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
<label for="cover">{{ T (print .Section ".cover") }}</label>
</button>
<label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover">
{{ T (print .Section ".cover") }}
</label>
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
<label class="dn" for="groups">
{{ T (print .Section ".group") }}
</label>
<select id="groups" name="groups">
{{ range (.GetTerms "groups") }}
{{- $url := split .Permalink "/" -}}
{{- $urlPageSlug := index $url (sub (len $url) 2) -}}
<option value="{{ $urlPageSlug }}">{{ .Title }}</option>
{{ end }}
</select>
<button id="delete"
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
data-confirm="{{ T (print .Section ".delete") }}?">
@ -37,9 +48,13 @@
</section>
{{ end }}
{{ range (.Paginate .RegularPagesRecursive).Pages }}
<section class="flex no-text">
{{ range .Pages }}
<span class="w-third h8">
{{ .Render "summary-with-image" }}
</span>
{{ end }}
</section>
{{- template "_internal/pagination.html" . -}}
</section>