Commit Graph

208 Commits

Author SHA1 Message Date
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
Darks 089e851b4c
Desactivé les notifs 2019-12-03 16:57:49 +01:00
Darks 087dd56cb2
Retiré le mode fixed du menu version mobile 2019-12-03 12:54:28 +01:00
Darks c7318c6dd6
Correction de #34 (+ dernières modif pour #27)
#27 induisait un bug d'affichage sur le menu lorsqu'il passe en haut. Ce 
commit résoud le problème
2019-12-03 12:46:04 +01:00
Darks a38c5378e8
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-12-02 23:24:57 +01:00
Darks 7f63577c4f
Passage en flex-column du menu latéral 2019-12-02 22:54:01 +01:00
Eragon 3dc935c4f6
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-12-02 00:03:52 +01:00
Eragon 7884ca8bec
Pas de message d'optin de post en invité si connecté
Ajout d'un if dans le template de l'index du forum pour ne pas afficher l'option
de post en invité si l'utilisateur est connecté.

Remplacement des caractères d'espaces insécables pour html par des
espaces insécables en utf-8.
2019-12-02 00:00:04 +01:00
Darks f7e9715572
Menu latéral élargit 2019-11-29 22:11:55 +01:00
Darks 9ef8ae26d0
Minor changes 2019-11-29 21:37:05 +01:00
Eragon f3e47bd082
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-11-29 11:19:59 +01:00
Darks f111983bde
Update des requirements 2019-11-28 14:28:08 +01:00
Darks d4e1b05c29
Divers correctifs
- Le menu est utilisable sans Js (penser à mettre à jour les endpoints)
- Réorganisation des templates
- Ajout d'une page listant les outils
2019-11-28 14:14:35 +01:00
Darks f6706f2b66
Correction d'un bug au login sur le formulaire du menu 2019-11-28 13:17:13 +01:00
Darks 279c194a59
Ajout du support de LDAP
Mettre le flag à True dans local_config.py pour l'activer, et la doc 
dans VPS-config pour setup l'environnement
2019-11-28 13:10:50 +01:00
Darks a8756c2990
Ajout d'un fichier local_config.py d'exemple 2019-11-28 11:33:39 +01:00
Darks 3691520399
Quelques améliorations sur le code front-end 2019-11-28 11:32:53 +01:00
Eragon f62842216d
Add scripts/ folder into gitignore 2019-11-26 11:42:30 +01:00
Darks ad41b5be38
Solved a security issue
Users could create accounts named Admin, ROOT, etc.
2019-11-21 16:27:53 +01:00
Lephe 2ed10a5a9d
model: minor convention updates 2019-11-21 15:31:46 +01:00
Darks 0cb3966de6
Ajout de la directive font-display: swap;
Ça permet d'afficher le texte avec une autre police en attendant que la 
font soit téléchargée
2019-11-03 11:48:37 +01:00
Darks a194136d47
Ajout de la police pour les smileys :) 2019-09-25 16:36:06 +02:00
Darks 67899f3e32 Merge branch 'dev' of fomys/PCv5 into dev 2019-09-17 16:54:25 +02: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
Darks aebe09de68
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-09-09 14:55:04 +02:00
Darks c5d9b39f06
Correction d'un bug 2019-09-09 14:22:55 +02:00
Eragon e3e38fde6f Supprimer 'package.txt' 2019-09-09 13:38:33 +02:00
Eragon c80398cba3 Supprimer 'Pipfile' 2019-09-09 13:37:22 +02:00
Eragon ac654d0232 Supprimer 'requirements.txt' 2019-09-09 13:37:20 +02:00
Eragon d2365a8444
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-09-09 13:34:57 +02:00
Eragon 75756c3b36
Ignore virtualenv files 2019-09-09 13:31:19 +02:00
Lephe e0dc6944f7
gitignore: add a generic "exclude" folder
For notes, TODOs, whatever at a personal level.
2019-09-09 08:11:39 +02:00
Lephe 3ad3eca470
forum: list subforum topics
Also introduces a 'date' filter that displays date in a readable format.
2019-09-09 08:11:39 +02:00
Lephe 79e5af7924
users: allow norm-equivalent names in profile url 2019-09-09 08:11:38 +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 d1a8333cae
forum: add forum listing routes
With this change, URLs for forum listings are now available. This
includes URLs like /news or /projects/games. Each of them show a
(currently empty) forum index.

Note that URLs that are not linked to in the forum index, namely URLs
for forums that have children (eg. /forum/news), are still accessible. We
could ban this by raising ValidationError if the forum has a non-empty
[sub_forums] attribute but displaying all subjects feels better.

URLs that point to /forum, but do not name a sub-forum and are not of
the form of a topic URL produce 404 errors.
2019-09-09 08:11:38 +02:00
Lephe 10e3c88bd4
errors: use the title block 2019-09-09 08:11:38 +02:00
Lephe 9f30bd36a0
forum: add the forum index page
Also prepare some functions for topic listings for each forum.
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 153f303857
rebase migration scripts from the notifications branch 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
Darks de83f09024
Ajout d'un logo plus petit pour ne pas charger le gros en permanence
Dans l'idéal faudrait même faire une version svg
2019-09-08 23:10:28 +02:00
Darks a29657da24
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-09-08 22:38:57 +02:00
Darks 035e4f9062
Corrections de style
Cf post 
https://www.planet-casio.com/Fr/forums/lecture_sujet.php?id=15836&page=last#168760
2019-09-08 22:38:19 +02:00
Eragon b628510455
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-09-08 16:45:11 +02:00
Eragon 2b8a78fe20
Issue #3, remplir /register/validation 2019-09-08 16:44:10 +02:00
Darks 0a33161af0
Corrige une erreur 500 si l'on se connecte sur un compte inexistant 2019-09-08 12:28:39 +02:00
Darks 7cad3d4345
Correction préférence de newsletter
À l'inscription, la préférence de la newsletter n'était pas prise en 
compte. Merci Hackcell pour la remontée du bug.
2019-09-08 11:38:26 +02:00