Commit Graph

134 Commits

Author SHA1 Message Date
Darks 1d638689c6
Modifications on trophies and titles #10 (and more)
- remove `title` attribute
- do the migration of db
- add initialization routine in `master.py`
- add default trophies and titles in `data/trophies.yaml`
- add `add_trophy` method in `Member` class
- add `update_trophies` method in `Member` class
- add form in admin panel to give a trophy to a member
- same to remove a trophy
- change `if request.method == "POST"` to `if form.submit.data`
2019-06-11 00:15:23 +02:00
Lephe a29e0c4411 core: parameterize minimum password length
Also try to make the code even lighter.
2019-06-07 14:23:48 -04:00
Lephe 43264d9de1 account: small trophy improvements on #10 2019-06-07 13:48:28 -04:00
Darks e67cfb2190
Un peu moins de verbosité dans les erreurs de mot de passe 2019-06-07 14:36:47 +02:00
Darks adf4b99a9b
Ajout de règles pour la validation des mots de passe. #13
Je vous conseille d'avoir un bon gestionnaire de mots de passe du coup 
:D
2019-06-07 14:00:26 +02:00
Darks 809859268a
Petite correction sur les droits 2019-06-07 01:56:18 +02:00
Darks b6eae7fef4
Oups :E 2019-06-07 01:49:43 +02:00
Darks 1bdad7c9e4 Merge branch 'trophies' of devs/PCv5 into master 2019-06-07 01:47:05 +02:00
Darks f67129a36b
Ajout des trophées et du panel pour les gérer 2019-06-07 01:44:04 +02:00
Darks 79e3189f4b
First draw for trophies 2019-06-06 23:24:14 +02:00
Lephe a3b867bab5 core: introduce a master script and enable proper privilege checks 2019-06-06 13:54:01 -04:00
Darks d6e8f7d4d8
Split routes to folders 2019-06-06 02:13:28 +02:00
Lephe 8570b8660f account: introduce normalized names
Adds a normalized name field to the user record. Also uses
normalized names conflicts to deny new user names.
2019-06-05 20:01:12 -04:00
Lephe 55ef818b84 api: remove less used requests 2019-06-05 20:01:12 -04:00
Darks de2c1e8c63
Put admin routes into a folder 2019-06-06 01:45:39 +02:00
Darks d3980fd131
Added some comments 2019-06-06 01:06:46 +02:00
Darks 6c586ad4c6
Corrigé une coquille 2019-06-06 00:25:59 +02:00
Darks b16d0ad178
Meilleur rendu sur les petits écrans. 2019-06-06 00:25:59 +02:00
Lephe e5ff934c4a utils: add normalization of Unicode names 2019-06-05 18:24:41 -04:00
Lephe 21ebfb7d2a account: remove innovation counter, use only xp 2019-06-05 16:42:32 -04:00
Darks 28897cfa6d
LOGIN_DISABLED désactivé par défaut
Pensez à modifier ça dans votre config.py local pour tester, et à 
désindexer le fichier (pour pas commit l'inverse par mégarde)
2019-06-05 18:07:48 +02:00
Darks e4ed9cb4b0
Retrait de quelques erreurs par rapport à la PEP8 (avec Flake8) 2019-06-05 11:35:54 +02:00
Darks 3133f5f814 Correction de #8 2019-06-05 01:51:14 +02:00
Darks a09cfd37b5 Quelques changements pour respecter la PEP8
Ajout d'un CoC Don't Be An Asshole.
2019-06-05 01:44:38 +02:00
Lephe bc7580de25 account: implement leveling and a simple profile widget 2019-05-03 13:40:20 +02:00
Lephenixnoir 8ce3785134 Merge branch 'master' of Eragon/PCv5 into master 2019-05-03 12:21:52 +02:00
Eragon 83155beb4c
Removing contributing and license files 2019-05-03 11:15:51 +02:00
Dark-Storm d482d1a6fb
Modification de la fonction render
- Ajout d'un modificateur pour changer les feuilles de style à la volée
2019-04-17 12:25:24 +02:00
Eragon fdbd6577a8
Add Pipfile 2019-04-02 15:32:52 +02:00
Eragon 183fb2d541
Merge branch 'master-fork' 2019-04-02 15:07:53 +02:00
Lephe 9291855c87 style: improvements on forms and responsiveness 2019-03-31 12:17:55 +02:00
Lephe b3ffd132f9 style: minor changes, leave Raleway 2019-03-31 09:40:33 +02:00
Lephe 05b9328888 minor code and style edits 2019-03-30 22:37:57 +01:00
Eragon 7a93f639fe
Updating requirements file and adding a new one 2019-03-21 22:01:26 +01:00
Eragon b6d758c197 Merge branch 'master-fork' 2019-02-17 21:51:00 +01:00
Lephe 725e768520 groups: move default group data to a suitable place 2019-02-16 17:12:41 +01:00
Dark-Storm c17212da13
Merge branch 'master' of git.planet-casio.com:devs/PCv5 2019-02-11 14:36:51 +01:00
Dark-Storm 2d0bce5d75
Correction de #20 2019-02-11 14:36:33 +01:00
Lephe 8211183b5c templates: add a pluralize filter 2019-02-11 13:16:46 +01:00
Dark-Storm 0c4f0f6748
Modifications en vrac
Dans User.valid_name, ajout de caractères non autorisés. Voir #19 pour
faire quelque chose de vraiment propre et safe.
Dans privs, j'ai shooté des règles en double. Répercussion sur les
autres routes.
Ajout du champ username dans le formulaire admin de modif d'un compte.
2019-02-11 00:15:09 +01:00
Dark-Storm 07d2f87169
Changement du orange bg-orange 2019-02-10 22:41:51 +01:00
Dark-Storm 7745dc332f
Réinsertion du footer dans le <container> 2019-02-10 20:58:52 +01:00
Lephe 834403038b privs: add methods to properly delete users and groups 2019-02-10 18:51:53 +01:00
Lephe 7921bb5765 privs: create privileges from groups and users
The groups-privileges page takes care of removing privileges
before deleting groups and users; this is to be moved soon to a
proper group/user deletion API.
2019-02-10 15:46:53 +01:00
Lephe 4f02160ebb navbar: fix bad behaviour when the user is authenticated
The News menu would not open when the user is authenticated,
leaving an empty menu area. Instead, the third button (Forum)
would open the News menu, shifthing every menu down a button.

This was caused by a bad selection query when getting the list
of menus; essentially the selection was equivalent to "#menu div".
Authenticated users have a div in the Account menu with their
name, so this div was mistaken for the second menu.

The problem was fixed by using a different selection equivalent
to "#menu > div" to get the list of menus.
2019-02-10 10:05:24 +01:00
Lephe 255fe82032 reponsive: clean up light.css 2019-02-10 10:03:11 +01:00
lephe 78b4299207 responsive: unify common style and light.css (WIP)
This includes loading the common style sheets at low resolutions
and removing the undescribable redundancy in light.css.

The harder part was getting the navbar right, because it relied
heavily on the distinction between navbar.css and light.css.

This is still a work in progress.
2019-02-09 22:42:16 +01:00
lephe 9fe1104b45 admin: more on user and group generation
Also more titles and details on other pages of
the administration section.
2019-02-09 21:18:12 +01:00
lephe ceedcb60b0 fonts: add the Cantarell font to some pages 2019-02-09 11:51:23 +01:00
lephe 9faabea997 templates: slightly restructure and improve design 2019-02-09 11:32:08 +01:00