Commit Graph

110 Commits

Author SHA1 Message Date
Julien Constant
b30ee0a27a
[FIX] Correction de bugs (#617)
* Fix #600

* Fix #602

* Fixes & améliorations du nouveau CSS (#616)

* Fix #604

* should fix #605

* Fix #608

* Update core/views/site.py

Co-Authored-By: thomas girod <56346771+imperosol@users.noreply.github.com>

* Added back the permission denied

* Should fix #609

* Fix failing test when 2 user are merged

* Should fix #610

* Should fix #627

* Should fix #109

Block les URLs suivantes lorsque le fichier se trouve dans le dir `profiles` ou `SAS` :
- `/file/<id>/`
- `/file/<id>/[delete|prop|edit]`

> Les urls du SAS restent accessiblent pour les roots & les admins SAS
> Les urls de profiles sont uniquement accessiblent aux roots

* Fix root dir of SAS being unnaccessible for sas admins

⚠️ need to edit the SAS directory & save it (no changes required in sas directory properties)

* Remove overwritten code

* Should fix duplicated albums in user profile (wtf)

* Fix typo

* Extended profiles picture access to board members

* Should fix #607

* Fix keyboard navigation not working properly

* Fix user tagged pictures section inside python rather than in the template

* Update utils.py

* Apply suggested changes

* Fix #604

* Fix #608

* Added back the permission denied

* Should fix duplicated albums in user profile (wtf)

* Fix user tagged pictures section inside python rather than in the template

* Apply suggested changes

---------

Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2023-05-02 13:07:36 +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
thomas girod
96dede5077
Speed up tests (#638) 2023-05-02 11:00:23 +02:00
thomas girod
b5a40cfda9
Mise à jour de Black vers la version 23.3 (#629) 2023-04-22 15:32:31 +02:00
thomas girod
99827e005b
upgrade re_path to path (#533) 2023-01-09 22:07:03 +01:00
Thomas Girod
ceb2888f82 enhance admin pages 2022-12-19 20:55:33 +01:00
Sli
320a896610 Fix tests and broken forms 2022-08-04 17:20:21 +02:00
Sli
98bfc308a7 Minimal working version
* Upgrade dependencies
* Fix ugettext
* Fix bad urls
2022-08-04 00:28:09 +02:00
Sli
dee24fbc9c Fix deprecation warnings 2022-08-03 21:48:37 +02:00
tleb
5cc7eff94f pedagogy: uv autofill finishing touches 2019-10-24 14:18:29 +02:00
tleb
28bd6b8708 uv: make autofill available on edit page 2019-10-21 17:10:16 +02:00
tleb
6fce27113a /pedagogy/uv/create use quick notif 2019-10-21 16:52:51 +02:00
tleb
53a7633700 uv: Add error handler to uv autofill 2019-10-21 10:34:46 +02:00
tleb
4759551c16 Autofull UV small changes 2019-10-20 17:09:36 +02:00
tleb
bddb88d97f Comment UV API and fix little bugs 2019-10-18 18:13:53 +02:00
tleb
dbe44a9c1c Fix hour count and submit button 2019-10-18 01:45:49 +02:00
tleb
eeb791c460 Initial autofill on UV 2019-10-18 01:28:59 +02:00
df531198c9
django2.2: fix urls and adapt them to new format 2019-10-08 22:46:02 +02:00
4dadb1dbc0
django2.2: add default mandatory on_delete on all ForeignKey 2019-10-08 22:46:01 +02:00
2616e8b24c
django2.2: relpace django.core.urlresolvers by django.urls 2019-10-08 22:46:01 +02:00
be855c6c90
django2.2: migrate url to re_path 2019-10-08 22:46:01 +02:00
f30bea3dc9
pedagogy: add script to remove all previous doubled comments 2019-09-04 20:49:18 +02:00
a69f7b12b1
pedagogy: add script to remove all previous doubled comments 2019-09-04 20:49:17 +02:00
a5d5c41dd6
pedagogy: fix a bug when updating an UV from a different author 2019-08-27 22:46:41 +02:00
Sli
824ea37f44 Merge branch 'pedagogy_v2' into 'master'
Better display on mobile for guide page

See merge request ae/Sith!221
2019-08-26 12:11:26 +02:00
d903dc58cf
pedagogy: correctly fill star widget when editing comment 2019-08-08 18:59:44 +02:00
f09de0ab7d
pedagogy: remove stars on small devices for grade 2019-08-08 12:46:51 +02:00
3380980c5c
pedagogy: add generic font for .radio-guide 2019-08-07 17:50:50 +02:00
6c43b1c43d
pedagogy: better display on mobile for guide page
Widen search bar and use a grid template
Reduce zooming when clicking on the search bar (firexfox)
Remove zooming when clicking on search bar (chrome)
2019-07-25 19:01:53 +02:00
d844bccb04
pedagogy: improve performances on json mode for UVListView 2019-07-10 12:26:37 +02:00
Sli
49f928e754 Apply suggestion to pedagogy/views.py 2019-07-10 12:12:56 +02:00
07fc1014be
pedagogy: put methods after properties in models 2019-07-09 16:59:59 +02:00
f37c022538
pedagogy: put report button at left and author at right 2019-07-09 16:03:47 +02:00
b4b7bf05b4
pedagogy: remove scrolling on desktop for comments 2019-07-09 14:43:46 +02:00
f052d307d7
pedagogy: make report button less visible and author more important 2019-07-08 23:16:53 +02:00
f15971cecf
pedagogy: simplify moderation form for user 2019-07-08 17:34:23 +02:00
0d13014e8a
pedagogy: simpler generation for department radio buttons 2019-07-08 15:36:30 +02:00
fd1f89de1d
pedagogy: wrap all css inside a class named pedagogy to avoid name clashes 2019-07-08 15:25:28 +02:00
c15ea345dd
pedagogy: generate search form radios trough loop and remove semester_translated 2019-07-08 15:17:12 +02:00
cf1ec1dc86
pedagogy: add missing markdown treatment for key_concept 2019-07-08 09:26:22 +02:00
52129d7511
pedagogy: new mobile view and use of css grids for comment display 2019-07-08 02:54:49 +02:00
d03835d737
pedagogy: allow search on uv title 2019-07-08 00:54:53 +02:00
b4b7817baa
pedagogy: auto send form when typing 2019-07-08 00:53:02 +02:00
d85152e58c
pedagogy: quick access to comment from moderation 2019-07-08 00:01:54 +02:00
9f1aff8c07
pedagogy: add retries on search form and make uv table clickable 2019-07-07 23:52:54 +02:00
240d94bd57
pedagogy: enhance display on mobile and fix some bugs with webkit 2019-07-07 21:56:59 +02:00
3ee7ff2752
pedagogy: display hours of UVs 2019-07-07 21:38:00 +02:00
30ccbdc32d
pedagogy: fix search api when searching one letter (case sensitivity) 2019-07-07 18:55:23 +02:00
79243aece3
pedagogy: better display for uv_details 2019-07-07 18:51:36 +02:00
a61322b83f
pedagogy: fix search form display rights 2019-07-07 18:43:43 +02:00