Commit graph

75 commits

Author SHA1 Message Date
Rodolphe Breard
957c884f78 Use the minified css 2018-06-11 12:05:04 +02:00
Rodolphe Breard
1fa3ab9ebe Add sass for bulma 2018-06-11 12:04:31 +02:00
Rodolphe Breard
634eeac715 Display context logs with a lighter way 2018-06-10 22:42:52 +02:00
Rodolphe Breard
49c0cbf16e Allow admins to see more days from sources 2018-06-09 19:02:47 +02:00
Rodolphe Breard
9f490febdf Disable empty log sources 2018-06-09 19:02:13 +02:00
Rodolphe Breard
7fe6c91bed Add a command that clean logs 2018-06-09 19:01:36 +02:00
Rodolphe Breard
0c29381351 Urlize logs 2018-06-09 17:31:14 +02:00
Rodolphe Breard
1a9f9ca23b Move the nsfw functions into a real module 2018-06-03 23:48:21 +02:00
Rodolphe Breard
b0b8f30580 Migrate to Bulma
Bulma is simple and free full-CSS framework. Unlike Bootstrap, it fits
within a single small CSS file. It is also well integrated in Django.
https://bulma.io/
2018-06-03 22:16:40 +02:00
Rodolphe Breard
2e7c42f61f Add a footer with a legal page 2018-06-03 11:02:55 +02:00
Rodolphe Breard
4bdfe2d05c Flag allowed NSFW content 2018-06-02 21:43:23 +02:00
Rodolphe Breard
6ba0834175 Fix the navbar main logo 2018-06-02 20:29:58 +02:00
Rodolphe Breard
bfe37bedea Allow pages to be marked as NSFW 2018-06-02 16:03:13 +02:00
Rodolphe Breard
b444fe8c49 Fix the navbar icons path 2018-06-02 14:48:21 +02:00
Rodolphe Breard
e9c325b41f Chain queryset filters to avoid strange query generation syntax bug 2018-06-02 14:29:46 +02:00
Rodolphe Breard
aa691e7d2e Move the global static files to a dedicated subdirectory 2018-06-02 13:38:47 +02:00
Rodolphe Breard
dafb3e20dd Move the navbar icons to a dedicated subdirectory 2018-06-02 12:23:12 +02:00
Rodolphe Breard
1f7c9d511f Improve the readme with update and deployment tips 2018-06-02 10:54:49 +02:00
Rodolphe Breard
8e253993e7 Untrack the Pipfile.lock 2018-05-28 00:26:46 +02:00
Rodolphe Breard
5b6609a46f Add the NSFW mode 2018-05-27 18:45:52 +02:00
Rodolphe Breard
f0a3ce06fa Enforce coding style 2018-05-27 11:48:14 +02:00
Rodolphe Breard
1558b0e6fd Improve the readme file 2018-05-27 11:28:13 +02:00
Rodolphe Breard
4da85ac991 Improve the way the login url is handled 2018-03-03 11:30:29 +01:00
Rodolphe Breard
9f012885b4 Add gunicorn to dev-packages 2018-03-03 11:18:59 +01:00
Rodolphe Breard
6b84383dfd Upgrading django-npb 2018-03-03 11:16:21 +01:00
Rodolphe Breard
65300d9ce8 Add Django neo-pastebin 2018-03-02 19:38:14 +01:00
Rodolphe Breard
98947a358e Use view_name instead of func
Using func does not work when using application with namespace url.
2018-03-02 19:32:56 +01:00
Rodolphe Breard
01c9651131 Add markdown support for flat pages 2018-02-25 20:46:41 +01:00
Rodolphe Breard
884fd4579a Improve the admin panel for navbar elements
Elements are now ordered by parent and weight.
The parent, link and weight are now displayed in the list.
fix issue #1
2018-02-25 16:16:47 +01:00
Rodolphe Breard
8862f67777 Allow to override a navbar link for each language
ref issue #1
2018-02-25 16:15:29 +01:00
Rodolphe Breard
bd0c8ea904 Change the widget used by the navbar element description
ref issue #1
2018-02-25 14:36:38 +01:00
Rodolphe Breard
aa6e3bcc04 Correctly display and translate the account menu 2018-02-17 19:12:11 +01:00
Rodolphe Breard
a09ff2edc1 Allow to export the navbar in several formats 2018-02-17 19:03:37 +01:00
Rodolphe Breard
5d367f3f49 Use the Csv helper for the KHAGANAT_HOSTNAMES config 2018-02-09 21:45:26 +01:00
Rodolphe Breard
d5e14a4d99 Add python 3.6 to the requirements 2018-02-09 21:39:08 +01:00
Rodolphe Breard
af1a793965 Use python-decouple instead of custom hack 2018-02-09 18:52:37 +01:00
Rodolphe Breard
d5744c3842 Upgrade to django 2.0.2 2018-02-05 20:09:46 +01:00
Rodolphe Breard
3d32c27d9a Add a migration for the neluser module 2018-02-04 20:41:11 +01:00
Rodolphe Breard
397d0bf62d Allow to set the locale on navbar links 2018-02-04 20:40:41 +01:00
Rodolphe Breard
28e0743b3c Add an inline admin interface to the log module 2018-02-04 20:28:09 +01:00
Rodolphe Breard
fdf879a6b3 Allow to set the SECURE_PROXY_SSL_HEADER django setting
Sometimes the django application is deployed behind a reverse-proxy
which manage HTTPS. In such case, django think the connection is plain
HTTP unless SECURE_PROXY_SSL_HEADER is set and the reverse-proxy sets
the appropriate header/value.
2018-02-04 17:12:22 +01:00
Rodolphe Breard
291f9f0910 Fix various problems with emails for account/password 2018-02-04 16:11:07 +01:00
Rodolphe Breard
9d989f0549 Remove a buggy comma 2018-02-04 12:29:25 +01:00
Rodolphe Breard
195401edb0 Remove an unused context 2018-02-04 11:43:47 +01:00
Rodolphe Breard
acec5d06de Add a link to the admin pannel for superusers 2018-02-04 11:42:48 +01:00
Rodolphe Breard
eb8a3688a5 Return a 404 error for non-existent pages 2018-02-04 11:25:02 +01:00
Rodolphe Breard
71e7433040 Parse environment variables with boolean values
Simply using bool() on the string returns True for every non-empty
string. Hence, the only way to set a value to False is to set it the an
empty string, which is counter-intuitive.
This commit will instead compare the string to well-known values for
True and return accordingly. Every other non-empty string is evaluated
to False. Empty string are evaluated to the default value.
2018-02-04 11:15:02 +01:00
Rodolphe Breard
ab4eb7414c Add basic user functionalities
Users need to register, login, logout and reset their password.
2018-02-04 01:36:39 +01:00
Rodolphe Breard
e0d26e8a7a Add separators within the navbar
Implement #2
2018-01-29 22:34:05 +01:00
Rodolphe Breard
a12014e2f1 Add the language to the admin tool 2018-01-28 15:47:39 +01:00