Darks
dda7cce5d5
Updated WTForms imports
2022-04-14 20:01:45 +02:00
Darks
c6ef83d32c
post: add move to another thread operation ( #79 )
...
Currently only support forum
2021-07-14 19:55:16 +02:00
Lephe
3551103c88
forum: allow users to move topics to wherever they can write
2021-07-12 21:33:03 +02:00
Lephe
9f0cbc810b
forum: enable topic modification
...
This works only after a top comment has been selected (but topics
without top comments are an anomaly of databases initialized before it
was added, so we don't care).
2021-07-12 19:08:31 +02:00
Lephe
1837f8f9a6
forum: anti-bot fields for guest topics and comments ( #51 )
2021-07-10 12:30:12 +02:00
Lephe
888006cf86
theme: add Tituya's v43 theme
2021-07-10 09:28:36 +02:00
Lephe
05f56a1cf4
forum: improve attachment inputs and allow edition ( #49 )
2021-07-08 16:50:28 +02:00
Lephe
2aa2fd539f
clean up account forms (factor + syntax) ( #70 )
...
* Factor the update account forms (user and admin)
* Slightly cleaner syntax (I hope), also a bit shorter
2021-07-08 15:12:37 +02:00
Lephe
b3d99b93f8
account: add a theme setting ( #14 )
2021-07-08 11:43:09 +02:00
Lephe
8f0e15029c
utils: add a simple regex-based CSS validator ( #11 )
...
* Property name is [a-zA-Z-]+
* Value is anything but ;{}'"
2021-07-08 10:59:43 +02:00
Lephe
cc5f4e481b
account: member deletion, with post anonymization ( #57 )
2021-07-08 10:39:22 +02:00
Darks
87ef91b9e3
login_as: add function to login as arbitrary account
2021-03-05 23:56:03 +01:00
Darks
d783feb7d0
PEP8: removed trailing spaces
2021-03-05 23:56:03 +01:00
Eldeberen
938516cb3f
polls: added admin panel and deletion form
2021-02-22 23:50:19 +01:00
Eldeberen
d6512bb197
polls: added multi-choices polls
2021-02-22 22:49:11 +01:00
Eldeberen
fabad32955
polls: add a panel to manage own polls
2021-02-20 01:28:08 +01:00
Eldeberen
0801b8ec16
poll: add poll creation form
2021-02-20 00:39:22 +01:00
Lephe
e06363715e
forum: match topic title length in creation form with model
...
Model has titles of up to 128 characters, but the form limits that input
to 32 characters. Bump that to 128 too.
2020-10-30 09:36:21 +01:00
Darks
ed5367d46d
editor: added previews
2020-09-23 23:58:25 +02:00
Darks
555d8ae1a4
Refact some forms ( #70 )
2020-09-23 20:53:06 +02:00
Darks
7395835e71
refact: models files are nom uniform (all singular)
2020-08-06 21:19:01 +02:00
Darks
107c891553
fix(validators): cleaned a bit the directory
2020-08-06 00:04:47 +02:00
Darks
262d907c32
fix(forms): replace DataRequired by InputRequired
...
See [the
difference](https://stackoverflow.com/questions/23982917/flask-wtforms-difference-between-datarequired-and-inputrequired )
2020-08-05 23:26:36 +02:00
Darks
3fb3ee40d2
fix: better PEP8
...
Flake8 returns less errors. I ignored lots of them though
2020-08-05 22:52:56 +02:00
Darks
a83cef5970
attachments: fix #67
2020-08-02 15:03:08 +02:00
Darks
b51ca8291f
Bug fixed
2020-08-01 21:54:21 +02:00
Darks
554898db87
attachments: merged attachments system into dev
2020-08-01 21:47:25 +02:00
Darks
56a584c535
attachments: added attachments system
...
Still need some work on it…
2020-08-01 21:26:06 +02:00
Lephe
7e11469183
forum: add basic comment edition with preview
...
Limitations:
* Works only for registered users
* Does not redirect to the proper MainPost page
* Does not check permissions
2020-08-01 17:30:44 +02:00
Darks
b108ce4cfe
titles: add displayed title ( #65 )
...
- with forms for user and admins
2020-07-29 00:57:06 +02:00
Darks
0896a6b163
passwords: enhances passwords rules
...
- based on entropy (min 60 bits)
- adds a coloured progress bar if Js is enabled
2020-07-25 18:06:49 +02:00
Darks
889a091030
admin: ADD suivi des comptes inactifs, validation manuelle ( #58 )
2020-07-23 19:12:37 +02:00
Darks
77bcb99ea1
account: ADD mot de passe oublié
2020-07-21 22:12:18 +02:00
Darks
1b17234623
trophies: ADD hidden parameter, FIX admin panel
2020-07-20 19:35:05 +02:00
Darks
e6c1545031
feature: ajout du post en tant qu'invité
...
- Pour les commentaires seulement
- Ajout d'une option pour désactiver (antispam)
- Penser à faire les ACL rapidement…
- Un poil de CSS pour l'intégration du bouzin
2020-07-17 23:49:04 +02:00
Darks
bf8f766131
Ajout des groupes dans le panel de modification d'un compte
2019-12-10 22:27:39 +01:00
Darks
16bcfe9e30
Ajout du validateur DataRequired pour le contenu des topics
2019-12-04 22:52:19 +01:00
Darks
4e4508c4fd
Correction de bugs
...
- TextField → EmailField
- Problème au login si le nom n'est pas normalisable
2019-12-04 17:02:00 +01:00
Darks
662882cc15
Ajout des commentaires de topics
...
On ne peut pas encore modifier le top comment ni commencer un topic à
partir d'un thread externe, mais les bases sont là :)
2019-12-03 20:32:01 +01:00
Louis Chauvet
a8090908e9
Reformatage des formulaires - Un peu de retard désolé :-)
2019-09-13 19:34:20 +02:00
Louis Chauvet
c7743bfa78
Oubli d'un point
2019-09-09 19:58:25 +02:00
Louis Chauvet
49a93db5d9
Ajout des textes d'erreurs en français dans les formulaires
2019-09-09 19:55:04 +02: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
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
a29e0c4411
core: parameterize minimum password length
...
Also try to make the code even lighter.
2019-06-07 14:23:48 -04: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