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
Lephe
93e5fc380a
admin: improve display of trophies
2020-10-31 09:53:55 +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
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
e9948f9675
forum: fix index
2020-09-18 20:05:12 +02:00
Darks
9409113167
markdown: add markdown rendering
2020-09-18 19:43:10 +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
Darks
da78d0da70
admin: add a page to get configuration used
2020-08-27 23:12:31 +02:00
Darks
3a35c26bd7
forum: add pagination to topic list ( #64 )
2020-08-02 17:28:43 +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
Lephe
79600e8598
templates: add a dynamic date format
...
More reader-friendly (in French at least).
2020-08-01 15:44:47 +02:00
Lephe
8a95d43eb0
templates: represent actual level in XP bar in user widget
...
This is much more useful in determining a user's activity than the
current level progression. Since the XP bar is the second most visible
item apart from the avatar, it's more relevant.
2020-08-01 15:28:36 +02:00
Lephe
d3f137b92d
programs: add models for programs and topic promotions ( #20 )
...
Not tested yet since there is a lack of tools to manipulate comments,
topics and programs. The /programmes routes is used to display a list of
all programs, temporarily.
2020-08-01 15:11:19 +02:00
Lephe
ea39b5d787
templates: fix indent and tags of forum index
2020-08-01 15:09:07 +02:00
Darks
a2767c4343
widget_user: add title style if there is one
2020-07-30 14:50:08 +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
4117ec4b15
user: FIX problème de perf à l'affichage
...
Le serveur aime pas devoir recalculer à chaque fois le nombre de
commentaires de chaque topic
2020-07-23 20:46:30 +02:00
Darks
3a46f8046c
topics: ADD une relationship dans Member
...
Et une relation `comments` vers les commentaires. Moins utile, mais ça
coute rien.
Corrige par la même occasion les problèmes de perfs
2020-07-23 20:19:03 +02:00
Darks
8fbc3a635a
widget: FIX le lien vers la page d'un membre
2020-07-23 19:36:49 +02:00
Darks
889a091030
admin: ADD suivi des comptes inactifs, validation manuelle ( #58 )
2020-07-23 19:12:37 +02:00
Lephe
6b280c6901
trophies: add icons
2020-07-22 10:44:56 +02:00
Darks
77bcb99ea1
account: ADD mot de passe oublié
2020-07-21 22:12:18 +02:00
Darks
8bf825f9ea
registration: ADD email validation
2020-07-21 21:06:00 +02:00
Darks
48dd2b982b
widget-user: ajout de la polymorphie au widget
2020-07-21 18:45:06 +02:00
Darks
1b17234623
trophies: ADD hidden parameter, FIX admin panel
2020-07-20 19:35:05 +02:00
Lephe
c4bfef4765
trophies: add descriptions
...
DATABASE UPDATE: run [flask db upgrade], then use the [create-trophies]
command of the master script to recreate trophies.
2020-07-19 22:27:00 +02:00
Darks
4d3e1a14f3
profil: complétion de la page de profil ( #9 )
2020-07-19 21:14:34 +02:00
Darks
5f84a64221
Correction d'un </div>
qui trainait
2020-07-19 20:50:38 +02:00
Darks
ec73177f48
refactor: Un peu de nettoyage (debugging prints, routes, …)
2020-07-18 10:13:21 +02:00
Darks
34bc74b8e5
feat(forum): ajout du post invité sur les topics ( #36 )
...
- Encore une fois, penser à faire ces ACL… (#40 )
2020-07-18 07:52:29 +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
1ef055f629
enhancement: added modularity to converters
2020-07-17 00:17:11 +02:00
Lephe
17c78204a6
update the route model for the forum to <id>/<page>/<slug>
...
This works by bundling the topic object and page number in a pair during
conversion to/from URL, so that the slug can be computed effortlessly
and put in all links.
2020-07-16 23:58:21 +02:00
Darks
f24d81b778
Merge branches comptes-fin-de-siderbar
2020-07-16 19:13:58 +02:00