Commit Graph

55 Commits

Author SHA1 Message Date
thomas girod
3f2b63aaa5 move forum style into its own file 2024-09-27 11:21:33 +02:00
thomas girod
b25805e0a1 introduce djhtml as jinja+scss formater 2024-07-25 16:46:45 +02:00
Sli
2c8f18d7fc Add honeypot on forum 2024-07-22 11:40:11 +02:00
thomas girod
ef968f3673
Better usage of cache for groups and clubs related operations (#634)
* Better usage of cache for group retrieval

* Cache clearing on object deletion or update

* replace signals by save and delete override

* add is_anonymous check in is_owned_by

Add in many is_owned_by(self, user) methods that user is not anonymous. Since many of those functions do db queries, this should reduce a little bit the load of the db.

* Stricter usage of User.is_in_group

Constrain the parameters that can be passed to the function to make sure only a str or an int can be used. Also force to explicitly specify if the group id or the group name is used.

* write test and correct bugs

* remove forgotten populate commands

* Correct test
2023-05-02 12:36:59 +02:00
bae45bcd38 forum: remove old markdown preview 2018-12-20 14:27:55 +01:00
af3e2fb951 forum: use generic macro to display breadcrumb and display it on search result 2018-12-13 20:33:34 +01:00
82ffd75372 forum: fix typo in search bar checkbox class name 2018-12-13 20:33:34 +01:00
fc7e45190d forum: use pure jinja for search bar 2018-12-13 20:33:34 +01:00
721b22a1e9 forum: improve search bar UX behavior 2018-12-13 20:33:34 +01:00
Soldat
a9bae46f45 changed design 2018-12-13 20:33:34 +01:00
347caa3b6a forum and core: fix error 500 when query is empty on search 2018-12-13 20:33:34 +01:00
65a0b7b2d4 forum: better display of search results 2018-12-13 20:33:34 +01:00
525b047b4f forum: display search bar on every forum pages 2018-12-13 20:33:34 +01:00
Grégoire Duvauchelle
9b8a881914 Add haystack index, and a view for forum search (WIP) 2018-12-13 20:33:34 +01:00
443616a762
Forum permission fix and form display 2018-04-26 15:20:45 +02:00
Skia
606f1af4d5 forum: add favorite topics
Signed-off-by: Skia <skia@libskia.so>
2018-02-22 22:28:28 +01:00
Skia
f47f846d26 forum: add button CSS class
Signed-off-by: Skia <skia@libskia.so>
2018-02-22 22:15:10 +01:00
Skia
2847a4547e forum: display only viewable topics in "last unread"
Signed-off-by: Skia <skia@libskia.so>
2017-09-03 12:23:26 +02:00
Skia
15a9eff599 forum: fix time localization
Signed-off-by: Skia <skia@libskia.so>
2017-07-05 21:41:33 +02:00
7515e826f8 Remove ambiguity 2017-06-14 00:47:16 +02:00
Skia
ce46a9d9da Some small clean up and refactoring
Signed-off-by: Skia <skia@libskia.so>
2017-06-10 19:56:47 +02:00
Skia
2925cde8ab Add a MarkdownInput widget, and make use of it
Signed-off-by: Skia <skia@libskia.so>
2017-06-10 19:40:47 +02:00
Skia
4b9fa0cd57 Fix some Markdown and add basic textarea helper
Signed-off-by: Skia <skia@libskia.so>
2017-06-10 19:14:58 +02:00
Skia
457fc36e16 Fix markdown rendering on some pages, and add a link to the syntax help
Signed-off-by: Skia <skia@libskia.so>
2017-06-10 16:54:19 +02:00
Skia
3521ad699e forum: fix reply page
Signed-off-by: Skia <skia@libskia.so>
2017-06-02 08:47:47 +02:00
Skia
f3c1ab4ae4 forum: use short names
Signed-off-by: Skia <skia@libskia.so>
2017-05-31 23:56:47 +02:00
Skia
463e0b7055 Again some small forum improvements
Signed-off-by: Skia <skia@libskia.so>
2017-05-31 00:41:39 +02:00
Skia
32ac6640ab Small fix with forum topic titles
Signed-off-by: Skia <skia@libskia.so>
2017-05-30 23:37:06 +02:00
Skia
06b67f1d27 Still reducing the number of queries on the Forum
Signed-off-by: Skia <skia@libskia.so>
2017-05-30 23:37:06 +02:00
Skia
d7135e4d27 Make a lot of pimp in the Forum 2017-05-30 19:33:09 +02:00
Skia
44dacce9f2 Add forum signature 2017-04-12 19:38:54 +02:00
Skia
3aa5070a38 Add preview button in the Forum 2017-04-12 19:26:27 +02:00
Skia
830e94d73c Show that a message exists even if we can't see it 2017-04-10 23:27:34 +02:00
Skia
24c02f4638 Fix last message when the real last is deleted 2017-04-10 16:18:13 +02:00
Skia
9e61b11827 Mark all messages as read even if user can't see them 2017-04-10 15:33:49 +02:00
Skia
0887fe6c9e Arg, forgot another Ariadne's thread fix 2017-03-16 08:15:16 +01:00
Skia
825228cad6 Forum cosmetic 2017-03-15 19:24:01 +01:00
Skia
3993d17efe Fix forum Ariadne's thread 2017-03-15 18:35:15 +01:00
Skia
f400be3a79 Refactor topic to use paginator instead of custom paging 2017-03-15 18:34:22 +01:00
Skia
729a3608ba Add some pagination on forum topics 2017-03-12 20:40:37 +01:00
Skia
65e2514df2 Small template fixes in forum 2017-03-12 18:31:35 +01:00
Skia
7d99f02a4d forum: reply page, CSS, and first_unread fix 2017-02-25 14:38:10 +01:00
Skia
777fdd7bd5 Again, lot of forum improvements 2017-02-24 17:22:13 +01:00
Skia
fe07ee0963 Still lot of forum improvements, both rights and cosmetic 2017-02-24 15:55:50 +01:00
Skia
f262014f9b Some various forum fixes and improvements 2017-02-24 04:37:01 +01:00
Skia
c66b9b0512 Lot of small improvement in the forum 2017-02-24 01:50:09 +01:00
Skia
3b16704227 Add basic moderation to forum 2017-02-24 01:50:05 +01:00
Skia
138711c70c Some tiny fixes in the forum 2017-02-24 01:50:00 +01:00
Skia
6764224856 Fix quote answer and unread messages display 2017-02-24 01:49:48 +01:00
Skia
254126fd79 Add last unread function 2017-02-06 20:20:39 +01:00