Commit graph

55 commits

Author SHA1 Message Date
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
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
Théophile Bastian
acb4430c02 Change publis list style 2017-09-23 19:19:59 +02:00
Théophile Bastian
5fccab444e Add description text and page header to publi views 2017-09-23 19:07:13 +02:00
Théophile Bastian
3fbd7b5859 Use Markdown for presentation texts all around 2017-09-23 18:48:29 +02:00
Théophile Bastian
c9b1ccc5c9 Separate cleanly special publications in side bar 2017-09-23 16:34:47 +02:00
Théophile Bastian
6935179748 Fix publication name for specials 2017-09-23 16:34:37 +02:00
Théophile Bastian
f0282eb9da Order PublicationYears in descending order 2017-09-22 19:16:41 +02:00
Théophile Bastian
7023cac661 Change margins for the main block 2017-09-22 19:15:58 +02:00
Théophile Bastian
72202a4630 Handle special publications differently 2017-09-22 19:03:43 +02:00
Théophile Bastian
3f43ccdc4e Use SiteConfiguration's text for quasi-static pages 2017-09-22 18:12:53 +02:00
Théophile Bastian
db0f7fa5b2 Introduce django-solo for site configuration 2017-09-22 18:07:38 +02:00
Théophile Bastian
5ad0190446 Add documentation, requirements.txt and license. 2017-09-22 17:46:02 +02:00
Théophile Bastian
a7180f1425 Fix url destination of logo 2017-09-22 17:18:31 +02:00
Théophile Bastian
89c1bb63cd Add PublicationYear, add years to sidebar 2017-09-22 15:15:05 +02:00
Théophile Bastian
31c4b046fc Introduce placeholder pages for home and write_article 2017-09-22 13:44:36 +02:00
Théophile Bastian
32d4bd061c Adapt link hover in the sidebar with rounded corner 2017-09-22 10:14:58 +02:00
Théophile Bastian
3960b16242 Round top-left corner of main area 2017-09-22 09:43:14 +02:00
Théophile Bastian
13beb922ea Introduce a decent enough base template
Lacks features in the {side,nav}bar
Design to be perfected
2017-09-22 00:57:32 +02:00
Théophile Bastian
4426a52505 Order Publications by date by default 2017-09-21 20:21:53 +02:00
Théophile Bastian
a5e73d284b Enhance year_view.html a little 2017-09-21 20:21:53 +02:00
Théophile Bastian
edbd2fabca Use fontawesome 2017-09-21 20:09:46 +02:00
Théophile Bastian
c9a032236e Fix Publication's fields 2017-09-21 19:58:42 +02:00
Théophile Bastian
0c34bc8f3e Fix YearView filters and types 2017-09-21 19:43:28 +02:00
Théophile Bastian
b2c5d5c3c6 Add tentative first templates [WIP] 2017-09-21 19:12:15 +02:00
Théophile Bastian
f8d6be1c25 Include mainsite's urlpatterns 2017-09-21 19:11:51 +02:00
Théophile Bastian
10f29d8264 Add a simple view for a year 2017-09-21 14:00:10 +02:00
Théophile Bastian
aa4812e337 Add tentative model for a publication 2017-09-21 11:34:40 +02:00