Lephe
cf9cb8a8c6
forum: add true, recursive deletion methods
...
Each object has a .delete() which removes it and its owned subcontents.
This delete() unfortunately has to commit the database session because
circularly-dependent objects (such as a thread and its top comment)
cannot be deleted together; two commits are needed.
2020-11-01 10:49:24 +01:00
Lephe
bb6450bda2
editor: don't autofocus by default
...
Autofocus prompts the browser to scroll to the editor when the page
loads, which makes little to no sense on topic pages where the important
information is at the top.
2020-10-31 22:15:03 +01:00
Lephe
36ccb16536
thread: use the thread widget for top comments
...
This allows the top comment to be permalinked and edited as any comment,
following the intent of pinning normal comments to the top.
2020-10-31 15:35:00 +01:00
Lephe
c7846c4f8b
threads: improve layout and flow of messages
...
* When there is enough space, put links and date on the right
* On small screens, compact profile information
* On small screens, leave links and date on the right to maximize
message width
2020-10-31 15:35:00 +01:00
Lephe
05c16b8fa8
threads: hide signature delimiter if there is no signature
2020-10-31 15:35:00 +01:00
Darks
ee01a4c768
master.py: split generation of trophies and generation of icons
...
May be used in development environment when database is populated and
deleting/recreating trophies throws an error because it will broke
non-null relationships.
2020-10-31 10:15:07 +01:00
Lephe
93e5fc380a
admin: improve display of trophies
2020-10-31 09:53:55 +01:00
Lephe
a95a88f3b1
app: send cookies with Secure and SameSite=Lax ( #60 )
...
Sending cookies without Secure and without SameSite causes Firefox to
ignore or invalidate them, which disconnects accounts seemingly randomly.
2020-10-30 14:06:33 +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
ed231f6524
fix CSRF token for message preview ( #77 )
2020-10-07 21:47:21 +02:00
Eragon
227087ebbc
Issue #76 Refactoriser les messages flash
...
Javascript :
Supression du javascript inutile, l'entièreté du bloc du flash.
CSS :
Alignement plus correct des notifications flash, fini le fixed, 15%
place au margin auto.
Ajout d'une marge pour éviter l'effet «bloc».
Héritage des propriétés de couleur du texte et du fond de la classe supèrieure.
Modification des templates :
Les messages sont désormais chargés avant le contenu et après le header.
2020-10-01 22:16:15 +02:00
Darks
510b57c08c
posts: fix attachements deletion
2020-09-26 15:17:55 +02:00
Darks
3b188e3bab
posts: add deletion
2020-09-26 14:55:55 +02:00
Darks
0d8dd70956
security: add CSRF protection globally
...
The decorator @check_csrf can be used to check CSRF protection when
using GET links (like delete a post or logout)
2020-09-26 14:48:30 +02:00
Darks
8edeb052e2
templates: added <hr> separation between comment and signature
2020-09-26 12:31:17 +02:00
Darks
e308fca0ba
templates: added a widget for threads
...
It will be used for program comments, etc.
2020-09-26 11:56:07 +02:00
Darks
5253f8ec8f
post edition: added redirection to topic ( #49 )
...
Beware that the urlparse method may return unsafe results… IDK
2020-09-24 23:25:25 +02:00
Darks
67c3ebba42
editor: fix #73
2020-09-24 22:43:39 +02:00
Darks
e265e003b9
admin: fixed the forum panel
2020-09-24 00:22:20 +02: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
e9948f9675
forum: fix index
2020-09-18 20:05:12 +02:00
Darks
6d42ff7898
Merge branch 'dev' into preprod
2020-09-18 19:44:31 +02:00
Darks
9409113167
markdown: add markdown rendering
2020-09-18 19:43:10 +02:00
Darks
fd501587b5
css: fix a bit the style of text editor
2020-09-18 19:07:06 +02:00
Darks
cb3efc2503
Merge pull request 'Utilisation de https://github.com/sparksuite/simplemde-markdown-editor comme éditeur' ( #71 ) from new_editor into dev
...
Reviewed-on: https://gitea.planet-casio.com/devs/PCv5/pulls/71
2020-09-18 17:40:08 +02:00
Eragon
ed0f3b47f6
Meilleur gestion avec plusieurs forms dans une page
...
L'éditeur markdown est lié à l'id du textarea qui l'invoque (Acte Vaudou)
2020-09-18 14:59:38 +02:00
Eragon
b5f1ea1d1d
Un seul chargement du script même avec plusieurs textarea
...
Le script est chargé de manière standard, comme les autres scripts.
L'init du script est lancé seulement après le chargement complet
de toute les dépendances de la page.
2020-09-18 11:53:50 +02:00
Eragon
c419716806
Utilisation de https://github.com/sparksuite/simplemde-markdown-editor comme éditeur
...
Ajout des fichiers dans les fichiers statiques. (min.css & min.js).
Supression des scripts custom d'édition.
Remplacement par les bon appels de fonctions dans app/templates/widgets/editor.html
2020-09-17 22:41:32 +02:00
Eragon
cbdffc1224
Ajout de la possibilité d'activer un compte par la cli.
...
Une fonction permet de modifier le status de vérification de l'adresse mail de
l'utilisateur spécifié en paramètre.
On peut exploiter la fonction via le script `master.py`
2020-09-17 15:18:38 +02:00
Eragon
f15b33ae73
Ajout de l'exemple d'activation/désactivation de l'envoi des mails
2020-09-17 15:08:36 +02:00
Louis Gatin
80bbcac8db
themes: added Flammingkite theme
...
Still need to implement custom theme selection
2020-09-01 14:32:30 +02:00
Darks
8192c489dd
Merge branch 'dev' into preprod
2020-08-27 23:12:54 +02:00
Darks
da78d0da70
admin: add a page to get configuration used
2020-08-27 23:12:31 +02:00
Darks
b6a8302074
Merge branch 'dev' into preprod
2020-08-25 23:46:53 +02:00
Darks
df745fd4a6
ldap: add sub-organization feature
2020-08-25 23:05:54 +02:00
Darks
c5e99807e3
fix a typo in many files
2020-08-25 22:57:45 +02:00
Darks
7395835e71
refact: models files are nom uniform (all singular)
2020-08-06 21:19:01 +02:00
Darks
a7bde62ff2
feat(trophies): added programs count
2020-08-06 21:05:49 +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
801bd188ae
feat: add .env and .flaskenv to gitignore
...
Because there is no reason to track them
2020-08-05 22:16:58 +02:00
Darks
ad9a2e447b
Merge branch 'dev' into preprod
2020-08-02 17:31:16 +02:00
Darks
3a35c26bd7
forum: add pagination to topic list ( #64 )
2020-08-02 17:28:43 +02:00
Darks
a83cef5970
attachments: fix #67
2020-08-02 15:03:08 +02:00
Lephe
03c577316f
thread: add a reference to the owner post
2020-08-02 11:01:08 +02:00
Darks
9d9aee6565
Merge branch 'dev' into preprod
2020-08-01 21:54:44 +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