Commit Graph

31 Commits

Author SHA1 Message Date
Darks 04fb3225c1
refactor: passage aux variables CSS4 2020-07-13 22:54:34 +02:00
Darks bf8f766131
Ajout des groupes dans le panel de modification d'un compte 2019-12-10 22:27:39 +01:00
Darks bd559b9fad
Modif du style sur les titres dans le panel admin 2019-12-10 20:52:09 +01:00
Darks 51d0ce1129
Meilleure gestion des erreurs sur le changement d'avatar 2019-12-10 00:38:04 +01:00
Darks 9341c5883c
Premier jet sur les avatars 2019-12-09 23:24:05 +01:00
Lephe 8a0ba309e0
forum: restructure models and add topic creation
This changes fixes #25 by restructuring the forum models in a way
compatible with the polymorphic behavior of SQLAlchemy. Incidentally,
the new form turns out to be more appropriate for our use than the
polymorphic one originally used.

The migration for this task is non-trivial because the Thread class was
created with a foreign-key id which thus had no auto-increment or
associated sequence. The most reliable way of getting it back was to
recreate the table because SQLAlchemy ony performs automated sequence
introduction at table creation time. Four separate migration files
perform the whole change.

This commit also adds views and forms to create topics, and the
boilerplate for an advanced markup editor that can be used as a widget.
2019-09-09 08:11:38 +02:00
Lephe 35f1335f64
forum: better tree visualization, and topics
Turns the forum tree visualization in the admin panel into a tree-like
table, and exposes the Topic class to the application and database.
2019-09-09 08:11:38 +02:00
Lephe aa75ff09a1
forum: implement forum tree generation
This commit adds a forum tree YAML file (URL-based rather than an
actual tree...) and the 'forums' and 'create-forums' commands for
the master script.

A page /admin/forums is also used to currently display the forum
tree, although this will probably be turned into a full table with
forum descriptions, and a form with edition capabilities.
2019-09-09 08:11:37 +02:00
Lephe 11b19af199 forum: provide suitable migrations for the database
First migrate without the foreign key to create the tables, then add the
foreign key in a second migration.

Also removed unneeded imports that caused dependency cycles.

Minor "style" edits with the ambiguous use of super and unnecessary
db.Model inheritance.
2019-08-21 16:50:23 +02:00
Lephe 4cefe39c36 trophies: automatically remove undeserved trophies
... and other minor edits from the trophies branch.
2019-08-19 17:26:22 +02:00
Darks 7f640a13e9
Modification de la zone d'admin des comptes
Retrait de la liste déroulante au profit d'une liste de checkbox. Il 
faudra ajouter les icones.
2019-08-10 20:06:07 +02:00
Darks 95efa36228
Tentative (foireuse) de générer une liste de BooleanInput 2019-08-10 00:07:50 +02:00
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 43264d9de1 account: small trophy improvements on #10 2019-06-07 13:48:28 -04: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 6c586ad4c6
Corrigé une coquille 2019-06-06 00:25:59 +02:00
Lephe 21ebfb7d2a account: remove innovation counter, use only xp 2019-06-05 16:42:32 -04:00
Lephe bc7580de25 account: implement leveling and a simple profile widget 2019-05-03 13:40:20 +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
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
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 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 9faabea997 templates: slightly restructure and improve design 2019-02-09 11:32:08 +01:00
lephe c201b3adbd style: minor improvements 2019-02-07 21:22:49 +01:00
lephe 328cf887b0 style: something that makes sense 2019-02-07 17:55:20 +01:00
Dark-Storm 62729e6058
Ajouts dans le panel admin 2019-02-06 13:12:03 +01:00
Dark-Storm eca5fe488b
Ajouts dans le panel admin 2019-02-06 12:44:44 +01:00