Commit graph

81 commits

Author SHA1 Message Date
09ad2ca896
feat: Add nix tooling 2024-10-23 10:45:34 +02:00
98dbd1ecbf
chore: Rename bocal -> app 2024-10-23 10:45:34 +02:00
Théophile Bastian
370eb07d8c Merge branch 'master' into 'master'
Change school year to start on August 15th instead of August 1st

See merge request bocal/site!2
2024-08-17 17:28:34 +02:00
!
016f122eec Change school year to start on August 15th instead of August 1st 2024-08-17 16:46:15 +02:00
Théophile Bastian
3f68236ee0 Merge branch 'master' into 'master'
Allow index page in robots.txt

See merge request bocal/site!1
2022-05-22 18:50:14 +02:00
!
2554cf7b97 Allow index page in robots.txt 2022-05-22 18:37:28 +02:00
Théophile Bastian
0037f5f231 Update to Django 2.2 2020-06-16 12:00:24 +02:00
Théophile Bastian
8d8d26a14e Add robots.txt disallowing all 2019-01-19 17:28:24 +01:00
Théophile Bastian
329264715e Fix error 500: anonymous user has no CAS 2017-11-07 14:03:37 +01:00
Théophile Bastian
3b922ec7ca Moar CSS! Now handling code tags. 2017-11-02 15:49:42 +01:00
Théophile Bastian
9c78ecb895 A few more CSS rules: lists, margins… 2017-11-02 13:57:27 +01:00
Théophile Bastian
d719dde279 A few CSS enhancements for markdown-displayed text 2017-11-02 13:32:43 +01:00
Théophile Bastian
13a42a9847 Add missing requirement lxml 2017-11-02 13:01:49 +01:00
Théophile Bastian
aa3f2aa240 Trust PublicationYears description texts with HTML
This is necessary for, eg., centering part of the text…
2017-11-02 09:46:56 +01:00
Théophile Bastian
81d822db18 Add nginx configuration file
Includes preparation.pdf rule
2017-10-30 17:58:39 +01:00
Théophile Bastian
5f45aaa77b Use orange as background colour 2017-10-27 11:30:30 +02:00
Evarin
c8e937da08 README comment modifier le css 2017-10-23 10:12:56 +02:00
Evarin
7e385f63cb Les goûts et les couleurs 2017-10-23 09:58:10 +02:00
Evarin
e485307eea Fix little details 2017-10-21 18:08:42 +02:00
Evarin
d750ad6ae0 Fix responsive + plus de contraste 2017-10-19 23:14:07 +02:00
Théophile Bastian
adcf615e5b Clean up swap files and trailing whitespaces 2017-10-19 21:43:31 +02:00
Evarin
6b51c7bd42 Responsive un peu hackish mais fonctionnel 2017-10-19 16:12:57 +02:00
Evarin
6bc6b8c315 Site plus joli pas responsive 2017-10-19 15:36:19 +02:00
Evarin
ce694f617b Merge branch 'master' into Evarin/apparence 2017-10-19 10:47:31 +02:00
Théophile Bastian
e6cdf40fdc Add possibility to have an unknown publication date 2017-10-17 16:29:42 +02:00
Théophile Bastian
32716892d7 API client: Enforce https 2017-10-16 21:24:59 +02:00
Théophile Bastian
2264b0886f Change API protocol to fix json normalization
A dictionnary's order is not deterministic (eg. when switching python
versions), thus the previous protocol would often fail to authenticate a
legitimate request.
2017-10-16 21:24:39 +02:00
Théophile Bastian
f01c0b5594 Do not ship settings.py as a symlink 2017-10-16 20:06:56 +02:00
Théophile Bastian
97705834fd API client: add default host 2017-10-16 19:54:45 +02:00
Théophile Bastian
fcdbf515e9 API client: fix date input 2017-10-16 19:47:45 +02:00
Théophile Bastian
6892b04742 Don't use random.choices (new with python 3.6)
Poor Debian users.
2017-10-16 17:23:56 +02:00
Théophile Bastian
87071ef526 Make API client a standalone script 2017-10-16 17:05:26 +02:00
Evarin
ec78ec28f2 Début d'un autre design 2017-10-15 21:56:03 +02:00
Théophile Bastian
865a249002 Fix first CAS connection problem
`user` was not returned by configure_user
2017-10-15 17:09:14 +02:00
Théophile Bastian
7797314c09 Add django-cas-ng as a requirement for pip 2017-10-14 22:45:04 +02:00
Théophile Bastian
6748000327 Fix BOcal group fixture: natural IDs for permissions 2017-10-14 22:44:42 +02:00
Théophile Bastian
46a03b3805 Make BOcal's logo responsive (navbar) 2017-10-14 22:23:21 +02:00
Théophile Bastian
654d87101d Add custom error pages for 403, 404, 500
Close #6.
2017-10-14 19:52:46 +02:00
Théophile Bastian
eed3653d22 Use rhosts file to grant permissions to users.
Whenever a user logs in through CAS, their username is looked up in the
.rhosts file provided through settings. If it is found, the user is
granted staff status and BOcal group (cf fixture).

The rights are re-evaluated at each login and at each access to
/admin/login.

Close #2.
2017-10-14 19:36:13 +02:00
Théophile Bastian
e699fc617e Move authentication-related modules to app bocal_auth 2017-10-14 17:59:42 +02:00
Théophile Bastian
b1727f7e07 Clean a CAS-returned username
cas.eleves.ens.fr allows users such as '  FooBAr ' or 'foobar' in
indifferently
2017-10-14 16:57:59 +02:00
Théophile Bastian
17e71451fe Make login through CAS and local auth available
So far, CAS-created users don't get any privilege based on rhosts
2017-10-14 16:22:23 +02:00
Théophile Bastian
a62272d82e Add a link to latest publication on homepage
Note: the CSS is utterly horrible. Please change this asap.
Close #5
2017-09-24 19:31:42 +02:00
Théophile Bastian
dd95ce4c3c Add url for the latest publication 2017-09-24 19:11:08 +02:00
Théophile Bastian
23466d3717 Fix PublicationYear.publis returning special publications 2017-09-24 19:10:20 +02:00
Théophile Bastian
673ce754f6 Create PublicationYear on API request
Closes #3
2017-09-24 18:41:31 +02:00
Théophile Bastian
6d2ab4c0ca Update URLs to include api 2017-09-24 18:25:41 +02:00
Théophile Bastian
b0f42fbe4b Fix publish API, add basic client 2017-09-24 18:23:48 +02:00
Théophile Bastian
25102a8233 Add API publish view [UNTESTED] 2017-09-24 18:23:36 +02:00
Théophile Bastian
481775a040 Init api 2017-09-23 21:40:45 +02:00