- - {{ .Manifest.Title }} - {{ index .Manifest.Tags 0 }} - - - - - {{if .Manifest.Options.HighscoresEnabled}} - - - - - - {{end}} - {{ if .Manifest.Description }} - - - - - - {{ end }} + + + + + + {{ .Manifest.Title }} + + + {{ index .Manifest.Tags 0 }} + + + + Ouvrir + + + + - - - - - Ouvrir - - - - - - - - - {{ if .Manifest.Description }} - - - {{ markdown .Manifest.Description }} - - - {{ end }} {{end}} diff --git a/template/blocks/base.html.tmpl b/template/blocks/base.html.tmpl index d2e2253..3243ee9 100644 --- a/template/blocks/base.html.tmpl +++ b/template/blocks/base.html.tmpl @@ -6,14 +6,14 @@ {{block "title" . -}}{{- end}} - - {{- block "head_style" . -}}{{end}} {{- block "head_script" . -}} {{template "js_config" .}} + + {{- block "head_style" . -}}{{end}} {{end}} diff --git a/template/blocks/flash.html.tmpl b/template/blocks/flash.html.tmpl index 577a6bc..23cb270 100644 --- a/template/blocks/flash.html.tmpl +++ b/template/blocks/flash.html.tmpl @@ -1,5 +1,5 @@ {{define "flash"}} - + {{- range .Flashes -}} {{- if eq .Type "error" -}} {{template "flash_message" map "Title" "Erreur" "MessageClass" "is-danger" "Message" .Message }} @@ -15,9 +15,7 @@ {{end}} {{define "flash_message" -}} - - - {{.Title}} {{.Message}} - + + {{ .Message }} {{- end}} \ No newline at end of file diff --git a/template/blocks/header.html.tmpl b/template/blocks/header.html.tmpl index ef65296..e04c3b3 100644 --- a/template/blocks/header.html.tmpl +++ b/template/blocks/header.html.tmpl @@ -9,18 +9,13 @@ {{if .IsAdmin}} - - - - - + Logout {{end}} - Profile + Profile Admin - Feedback diff --git a/template/layouts/admin_app_edit.html.tmpl b/template/layouts/admin_app_edit.html.tmpl index a47d286..40d29ef 100644 --- a/template/layouts/admin_app_edit.html.tmpl +++ b/template/layouts/admin_app_edit.html.tmpl @@ -1,108 +1,83 @@ {{define "title"}}Modifier l'app - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - - - - + + + + {{template "admin_menu" ""}} - + {{template "flash" .}} - - + + ← Retour - - - - - - Informations de l'app - - - - - Publiée ? - + + + + Informations de l'app + + + Publiée ? - Identifiant - - {{ .App.ID }} - Non modifiable + Identifiant + + {{ .App.ID }} - Titre - - Titre + + - - - Réinitialiser la valeur par défaut ? - - Description - - Description + + {{if .Form}}{{ .Form.Get "description" }}{{else}}{{ .App.Manifest.Description }}{{end}} - - - Réinitialiser la valeur par défaut ? - - Ordre d'affichage - - Ordre d'affichage + + - - - Réinitialiser la valeur par défaut ? - - Tags - + Tags + - - - - - + + + + - - + - - - Réinitialiser la valeur par défaut ? - {{ .csrfField }} - Modifier + Modifier - diff --git a/template/layouts/admin_apps_list.html.tmpl b/template/layouts/admin_apps_list.html.tmpl index ff022c6..0f22abf 100644 --- a/template/layouts/admin_apps_list.html.tmpl +++ b/template/layouts/admin_apps_list.html.tmpl @@ -1,52 +1,74 @@ {{define "title"}}Applications - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - - - - + + + + {{template "admin_menu" "apps"}} - + {{template "flash" .}} - Liste des applications installées - + Liste des applications installées + Total {{ .AppsCount }} - - - - - ID - Titre - Version - Ordre d'affichage - Publiée ? - Tags - Actions - - - + + + + + + ID + + + Titre + + + Version + + + Ordre d'affichage + + + Publiée ? + + + Tags + + + Actions + + + + {{range .Apps}} - - {{ .ID }} - {{ .Manifest.Title }} - {{ if eq .Manifest.Version "" }}--{{else}}{{ .Manifest.Version }}{{end}} - {{ .Order }} - {{ if .Published }}oui{{else}}non{{end}} - - {{range .Manifest.Tags}} - {{ . }} - {{end}} - - - - Modifier - - + + + {{ .ID }} + + + {{ .Manifest.Title }} + + + {{ if eq .Manifest.Version "" }}--{{else}}{{ .Manifest.Version }}{{end}} + + + {{ .Order }} + + + {{ if .Published }}oui{{else}}non{{end}} + + + {{range .Manifest.Tags}} + {{ . }} + {{end}} + + + Modifier + {{else}} - + Aucune application installée. diff --git a/template/layouts/admin_login.html.tmpl b/template/layouts/admin_login.html.tmpl index d5f4107..ef82f42 100644 --- a/template/layouts/admin_login.html.tmpl +++ b/template/layouts/admin_login.html.tmpl @@ -1,21 +1,28 @@ {{define "title"}}Login - Administration - Arcad{{end}} {{define "body"}} +{{- block "head_style" . -}} + +{{end}} + {{template "header" .}} - - - {{template "flash" .}} - - Administration - - - {{ .csrfField }} - S'identifier - - - - + + + {{template "flash" .}} + + Administration + + + + + {{ .csrfField }} + S'identifier + + + + {{end}} {{template "base" .}} \ No newline at end of file diff --git a/template/layouts/admin_market_app_install.html.tmpl b/template/layouts/admin_market_app_install.html.tmpl index 16604e3..821d120 100644 --- a/template/layouts/admin_market_app_install.html.tmpl +++ b/template/layouts/admin_market_app_install.html.tmpl @@ -1,27 +1,38 @@ {{define "title"}}Installer une application - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - + - - + {{template "admin_menu" "market"}} - + {{template "flash" .}} {{if .App}} - - - Installation d'une application + + + + + + + + Installation d'une application - {{ .App.Name }} + + + + + + Êtes vous sûr de vouloir installer l'application {{ .App.Name }} en version {{ .App.LatestRelease.Version }} développée par {{ .App.Owner.Username }} ? + + + + + Annuler + Confirmer + - - Êtes vous sûr de vouloir installer l'application {{ .App.Name }} en version {{ .App.LatestRelease.Version }} développée par {{ .App.Owner.Username }} ? - - Annuler - Confirmer - - - + + {{else}} @@ -33,7 +44,6 @@ {{end}} - {{end}} diff --git a/template/layouts/admin_market_search.html.tmpl b/template/layouts/admin_market_search.html.tmpl index 9dc8326..36f8fec 100644 --- a/template/layouts/admin_market_search.html.tmpl +++ b/template/layouts/admin_market_search.html.tmpl @@ -1,66 +1,51 @@ {{define "title"}}Place de marché - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - + - - - {{template "admin_menu" "market"}} + + {{template "admin_menu" "market"}} + + + {{template "flash" .}} + + + + + + + Rechercher + + + + + Total {{ .ResultsCount }} - - {{template "flash" .}} - - - - - - - - Rechercher - + {{range .Results}} + + + + {{ .Name }} + + {{ .LatestRelease.Description }} + + + + {{ localeTimeFormat .LatestRelease.CreatedAt.Time "02/01/2006 15:04" "fr_FR" }} + {{ .Owner.Username }} - V{{ .LatestRelease.Version }} + + + + + - - - Total {{ .ResultsCount }} - - - - - ID - Description - Développeur - Dernière version - Dernière mise à jour - Actions - - - - {{range .Results}} - - {{ .Name }} - {{ .LatestRelease.Description }} - {{ .Owner.Username }} - {{ .LatestRelease.Version }} - {{ localeTimeFormat .LatestRelease.CreatedAt.Time "02/01/2006 15:04" "fr_FR" }} - - - Installer - - - - {{else}} - - - Aucun résultat. - - - {{end}} - - - - + {{else}} + + Aucun résultat. + + {{end}} diff --git a/template/layouts/admin_register.html.tmpl b/template/layouts/admin_register.html.tmpl index 9b5394b..ebe44fd 100644 --- a/template/layouts/admin_register.html.tmpl +++ b/template/layouts/admin_register.html.tmpl @@ -1,13 +1,13 @@ {{define "title"}}Création du mot de passe - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - + {{template "flash" .}} - Création du mot de passe de l'administrateur + Création du mot de passe de l'administrateur diff --git a/template/layouts/admin_settings.html.tmpl b/template/layouts/admin_settings.html.tmpl index 7ffe4b6..dac78ce 100644 --- a/template/layouts/admin_settings.html.tmpl +++ b/template/layouts/admin_settings.html.tmpl @@ -1,34 +1,35 @@ {{define "title"}}Configuration - Administration - Arcad{{end}} {{define "body"}} +{{- block "head_style" . -}} + +{{end}} {{template "header" .}} - - - - - {{template "admin_menu" "config"}} - - - {{template "flash" .}} - Réglages - - {{ .csrfField }} - {{ $settings := .Settings }} - {{range $id, $meta := .Metadatas}} - {{ $se := $settings.Get $id }} - {{ $data := createMap "ID" $id "Setting" $se "Meta" $meta }} - {{if eq $meta.ValueType "password"}} - {{template "password_setting" $data}} - {{else if eq $meta.ValueType "markdown"}} - {{template "markdown_setting" $data}} - {{end}} - {{end}} - - - - - - - + + + {{template "admin_menu" "config"}} + + + {{template "flash" .}} + + Réglages + + {{ .csrfField }} + {{ $settings := .Settings }} + {{range $id, $meta := .Metadatas}} + {{ $se := $settings.Get $id }} + {{ $data := createMap "ID" $id "Setting" $se "Meta" $meta }} + {{if eq $meta.ValueType "password"}} + {{template "password_setting" $data}} + {{else if eq $meta.ValueType "markdown"}} + {{template "markdown_setting" $data}} + {{end}} + {{end}} + + + + + + @@ -41,30 +42,32 @@ {{template "base" .}} {{define "password_setting"}} - - {{ .Meta.Label }} + + {{ .Meta.Label }} - + type="password" + id="password"> - - {{ .Meta.Label }} (confirmation) + + {{ .Meta.Label }} (confirmation) - + type="password" + id="confirmPassword"> {{end}} {{define "markdown_setting"}} - - {{ .Meta.Label }} - + + {{ .Meta.Label }} + - {{- if .Setting}}{{ .Setting.Value }}{{end -}} + {{- if .Setting}}{{ .Setting.Value }}{{end -}} diff --git a/template/layouts/admin_user_delete.html.tmpl b/template/layouts/admin_user_delete.html.tmpl index 8be8efa..17728c1 100644 --- a/template/layouts/admin_user_delete.html.tmpl +++ b/template/layouts/admin_user_delete.html.tmpl @@ -1,7 +1,7 @@ {{define "title"}}Informations de l'utilisateur - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - + diff --git a/template/layouts/admin_user_info.html.tmpl b/template/layouts/admin_user_info.html.tmpl index 49e1bd4..6596bd4 100644 --- a/template/layouts/admin_user_info.html.tmpl +++ b/template/layouts/admin_user_info.html.tmpl @@ -1,84 +1,84 @@ {{define "title"}}Informations de l'utilisateur - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - - - - + + + + {{template "admin_menu" ""}} - + {{template "flash" .}} - - - ← Retour - - - Supprimer - - - - - - Informations de l'utilisateur - - Pseudonyme - - + + + Informations de l'utilisateur + + Pseudonyme + + {{ .csrfField }} - Modifier + Modifier - - Date de création - - + + Date de création + + {{ localeTimeFormat .User.CreationTime "02/01/2006 15:04" "fr_FR" }} - - Date de dernière connexion - - + + Date de dernière connexion + + {{ localeTimeFormat .User.LastSeenTime "02/01/2006 15:04" "fr_FR" }} {{with .User.LastUserAgent}} - - Dernier système d'exploitation utilisé - - - {{ .OS.Name.StringTrimPrefix }} {{ .OS.Version.Major }}.{{ .OS.Version.Minor }}.{{ .OS.Version.Patch }} - + + Dernier système d'exploitation utilisé + + + {{ .OS.Name.StringTrimPrefix }} {{ .OS.Version.Major }}.{{ .OS.Version.Minor }}.{{ .OS.Version.Patch }} + + - - - Dernier navigateur utilisé - - - {{ .Browser.Name.StringTrimPrefix }} {{ .Browser.Version.Major }}.{{ .Browser.Version.Minor }}.{{ .Browser.Version.Patch }} - + + Dernier navigateur utilisé + + + {{ .Browser.Name.StringTrimPrefix }} {{ .Browser.Version.Major }}.{{ .Browser.Version.Minor }}.{{ .Browser.Version.Patch }} + + - - - Dernier type de terminal utilisé - - - {{ .DeviceType.StringTrimPrefix }} - + + Dernier type de terminal utilisé + + + {{ .DeviceType.StringTrimPrefix }} + + - {{end}} + + + ← Retour + + + Supprimer + + - - Carte de membre - + + Carte de membre + diff --git a/template/layouts/admin_users_list.html.tmpl b/template/layouts/admin_users_list.html.tmpl index 089d5c8..35f3a64 100644 --- a/template/layouts/admin_users_list.html.tmpl +++ b/template/layouts/admin_users_list.html.tmpl @@ -1,50 +1,36 @@ {{define "title"}}Utilisateurs - Administration - Arcad{{end}} {{define "body"}} {{template "header" .}} - - - - - {{template "admin_menu" "users"}} + + + {{template "admin_menu" "config"}} + + + {{template "flash" .}} + + Liste des utilisateurs + + Total {{ .UsersCount }} - - {{template "flash" .}} - Liste des utilisateurs - - Total {{ .UsersCount }} + + {{range .Users}} + + + + {{ .Nickname}} + {{ .Nickname }} + + Voir + Supprimer + + + {{ localeTimeFormat .CreationTime "02/01/2006 15:04" "fr_FR" }} + {{ localeTimeFormat .LastSeenTime "02/01/2006 15:04" "fr_FR" }} + + + + {{end}} - - - - - Pseudonyme - Date d'enregistrement - Dernière connexion - Actions - - - - {{range .Users}} - - {{ .Nickname }} - {{ localeTimeFormat .CreationTime "02/01/2006 15:04" "fr_FR" }} - {{ localeTimeFormat .LastSeenTime "02/01/2006 15:04" "fr_FR" }} - - - - Supprimer - - - Voir - - - - - {{end}} - - - - diff --git a/template/layouts/app.html.tmpl b/template/layouts/app.html.tmpl index c94e3d2..96cab69 100644 --- a/template/layouts/app.html.tmpl +++ b/template/layouts/app.html.tmpl @@ -1,22 +1,18 @@ {{define "title"}}{{ .App.Manifest.Title }} - Arcad{{end}} {{define "body"}} - + - + - - - + {{if .App.Manifest.Options.HighscoresEnabled}} - - Classement - - - + + Classement + {{end}} diff --git a/template/layouts/bad_gateway.html.tmpl b/template/layouts/bad_gateway.html.tmpl index 8a95009..0f66a63 100644 --- a/template/layouts/bad_gateway.html.tmpl +++ b/template/layouts/bad_gateway.html.tmpl @@ -1,6 +1,6 @@ {{define "title"}}Borne non disponible - Arcad{{end}} {{define "body"}} - + diff --git a/template/layouts/captive_portal.html.tmpl b/template/layouts/captive_portal.html.tmpl index cc0ed80..2dcdb30 100644 --- a/template/layouts/captive_portal.html.tmpl +++ b/template/layouts/captive_portal.html.tmpl @@ -5,7 +5,7 @@ {{ if .IsAndroid }} {{ $redirectUrl := "intent://arcadbox.local/captive?escape=1#Intent;scheme=http;end" }} {{ end }} - + diff --git a/template/layouts/highscore.html.tmpl b/template/layouts/highscore.html.tmpl index 4bec17d..94f565b 100644 --- a/template/layouts/highscore.html.tmpl +++ b/template/layouts/highscore.html.tmpl @@ -1,27 +1,23 @@ {{define "title"}}{{.App.Manifest.Title}} - Tableau des scores - Arcad{{end}} {{define "body"}} {{template "header" .}} - - - - - {{.App.Manifest.Title}} - Tableau des scores - - - + + + + {{.App.Manifest.Title}} + Ouvrir - - - + - - - + + + Podium {{template "podium" .}} - + + Tableau des scores {{template "highscores" .}} @@ -67,7 +63,6 @@ 1 - {{ if gt (len .Highscores) 2 }} {{ $thirdPlayerHighscore := index .Highscores 2 }} @@ -83,7 +78,6 @@ 3 - {{end}} @@ -91,30 +85,46 @@ {{define "highscores"}} {{ $users := .Users }} - - - - Position - Pseudonyme - Score - Date - - - {{range $i, $h := .Highscores}} - {{ $user := (index $users $h.UserID) }} + + - {{ $position := addInt $i 1 }} - {{ $position }} - {{with $user}}{{ .Nickname }}{{else}}???{{end}} - {{ $h.Score }} - {{ localeTimeFormat $h.CreationTime "02/01/2006 15:04" "fr_FR" }} + + Position + + + Pseudonyme + + + Score + + + Date + - {{else}} - - Aucun score pour l'instant. - - {{end}} + + + {{range $i, $h := .Highscores}} + {{ $user := (index $users $h.UserID) }} + + {{ $position := addInt $i 1 }} + + {{ $position }} + + + {{with $user}}{{ .Nickname }}{{else}}???{{end}} + + + {{ $h.Score }} + + + {{ localeTimeFormat $h.CreationTime "02/01/2006 15:04" "fr_FR" }} + + + {{else}} + + Aucun score pour l'instant. + + {{end}} - {{end}} \ No newline at end of file diff --git a/template/layouts/home.html.tmpl b/template/layouts/home.html.tmpl index 41f2b8f..08b735d 100644 --- a/template/layouts/home.html.tmpl +++ b/template/layouts/home.html.tmpl @@ -1,24 +1,38 @@ {{define "title"}}Accueil - Arcad{{end}} {{define "body"}} {{template "header" .}} - + + - {{if and .WelcomeMessage .WelcomeMessage.Value}} - - - + {{markdown .WelcomeMessage.Value}} - - {{end}} - - {{range .Apps}} - {{- template "app_tile" . -}} - {{end}} + + Qu'est ce que c'est ? + Arcad est une suite de logiciels libres, permettant de proposer des services numériques (applications web) de proximité i.e. hébergés sur des équipements réseaux du type borne WiFi (Linksys WRT1900AC par exemple) ou micro-serveur domestique (serveur NAS, Raspberry Pi). + + Pourquoi ? + + + Un des objectifs du projet est d'offrir un système capable de fonctionner en autonomie: les terminaux numériques (ordinateur, smartphones, tablettes...) des utilisateurs ne doivent pas nécessiter de connexion Internet pour pouvoir accéder aux services. + + + De manière optionnelle, les services intégrés sur une instance Arcad peuvent être exposés sur Internet via un serveur relais disposant d'une adresse publique. + + + + + + Applications + {{range .Apps}} + {{- template "app_tile" . -}} + {{end}} + + {{end}} {{template "base" .}} diff --git a/template/layouts/profile.html.tmpl b/template/layouts/profile.html.tmpl index 44e7e4c..5e8d51e 100644 --- a/template/layouts/profile.html.tmpl +++ b/template/layouts/profile.html.tmpl @@ -1,74 +1,59 @@ {{define "title"}}Profil - Arcad{{end}} {{define "body"}} {{template "header" .}} - + {{template "flash" .}} - - - - - - - - - - - - - Se connecter - - - - + + + + + + Connexion + + - {{ .csrfField }} - - - - - - - - - - - - - - Vos informations - - - Pseudonyme - - + + + + + Deconnexion + + + + + + {{ .csrfField }} + + Vos informations + + + Pseudonyme + + {{ .csrfField }} - - Modifier - - - - - + + Modifier - - - Carte de membre - - + + Carte de membre + + Téléchargez et utilisez votre carte de membre afin de pouvoir vous authentifier la prochaine fois avec le même pseudonyme ! - + - +
+ + + + {{ .Manifest.Title }} + + + {{ index .Manifest.Tags 0 }} + + + + Ouvrir + + + + - - - - - Ouvrir - - - - - - -
- - Installation d'une application + + + + + + + + Installation d'une application - {{ .App.Name }} + + + + + + Êtes vous sûr de vouloir installer l'application {{ .App.Name }} en version {{ .App.LatestRelease.Version }} développée par {{ .App.Owner.Username }} ? + + + + + Annuler + Confirmer + - - Êtes vous sûr de vouloir installer l'application {{ .App.Name }} en version {{ .App.LatestRelease.Version }} développée par {{ .App.Owner.Username }} ? - - Annuler - Confirmer - - - + + {{else}} @@ -33,7 +44,6 @@ {{end}} -
- + + Carte de membre + + Téléchargez et utilisez votre carte de membre afin de pouvoir vous authentifier la prochaine fois avec le même pseudonyme ! - + - +
+ Téléchargez et utilisez votre carte de membre afin de pouvoir vous authentifier la prochaine fois avec le même pseudonyme !