Wykres commitów

26 Commity (main)

Autor SHA1 Wiadomość Data
Marnanel Thurman 60b70f9cee "/home" served, but with nothing very interesting on it 2021-01-10 21:46:38 +00:00
Marnanel Thurman 98a5bde0b2 Display username in the navbar, and logout link, if you're logged in 2021-01-05 21:59:18 +00:00
Marnanel Thurman 4ef96ea6db LOGOUT_REDIRECT_URL 2021-01-05 21:56:26 +00:00
Marnanel Thurman 99981e3baf login stuff moved to /accounts/login (from /login) so we can use auth's urls.py in a separate subdir 2021-01-05 21:45:34 +00:00
Marnanel Thurman 2198350394 INSTANCE_BLURB. Closes issue #66. 2021-01-04 02:57:17 +00:00
Marnanel Thurman 7b37822d8d As a special case, view_for_mimetype returns the view list if the request param is None.
Tests updated.
2020-11-25 20:20:00 +00:00
Marnanel Thurman 0b98be76c4 fix logging statement 2020-11-25 19:34:28 +00:00
Marnanel Thurman 0e15db00da User page is HTML or JSON depending on Accept header.
Closes issue #48.
2020-11-25 18:46:31 +00:00
Marnanel Thurman 5e6a4a1721 Templates for previous commits which I forgot to stage 2020-11-25 18:46:15 +00:00
Marnanel Thurman a0fe164ae1 tophat gains UserPage view.
Slight tidying of StatusPage view.
2020-11-25 18:44:57 +00:00
Marnanel Thurman 6f033b7928 Status pages are HTML or JSON depending on Accept header. 2020-11-25 18:36:07 +00:00
Marnanel Thurman bfb7874d16 tophat StatusPage view. Very basic. 2020-11-25 18:35:52 +00:00
Marnanel Thurman 03c8c701ec view_for_mimetype() passes *args and **kwargs through to the view.
Tests updated, and tidied a bit.
2020-11-25 18:31:31 +00:00
Marnanel Thurman 3d3ce9b0f8 Add docstring to view_for_mimetype 2020-11-23 21:30:51 +00:00
Marnanel Thurman 29e6fffb1a Apparatus for choosing a Django view based on the incoming MIME type.
Not currently connected up.

Partly based on https://gist.github.com/samuraisam/2714195 ,
which is public domain.

Tests updated.
2020-11-23 21:25:03 +00:00
Marnanel Thurman 4f5325fb5c rm broken import 2020-11-14 01:19:25 +00:00
Marnanel Thurman b3da6e0756 base.html: <html> gets the lang tag, defaulting to "en".
HTML output now passes validation.
2020-11-12 19:51:01 +00:00
Marnanel Thurman 228626cc6e Turn relative links to absolute in base.html.
In the same file, "powered by kepi" becomes a link by itself
which fixes the bootstrap formatting there.

navbar.html and base.html links to "/index.html" replaced
by links to "/".

navbar.html gains link to "/login/".

.gitignore ignores kepi/static but not just any dir called static.
This allows us to check in kepi/tophat_ui/static.
Checking in the two existing files in that directory, plus
loads of new bootstrap static files.

Closes issue #50.
2020-11-12 19:43:08 +00:00
Marnanel Thurman 2513abcf7e Login page says "login" 2020-11-12 19:17:58 +00:00
Marnanel Thurman 12d2452aaf login takes you to the root page 2020-11-12 19:16:16 +00:00
Marnanel Thurman 1d9c630f11 move login.html from trilby to tophat, and add our template includes 2020-11-12 17:46:51 +00:00
Marnanel Thurman 0403dbacc9 Rename RootPageView to RootPage. Add django.contrib.auth.views.LoginView to urls.conf. 2020-11-12 17:46:20 +00:00
Marnanel Thurman 6f97a4ee08 Relative paths to absolute 2020-11-12 17:45:29 +00:00
Marnanel Thurman 5e1dc37a99 basic framework for the front page. Still needs the login box etc.
Part of issue #50.
2020-11-09 22:28:05 +00:00
Marnanel Thurman ebe785bda4 rm trailing newlines (pylint C0304) 2020-09-19 15:16:47 +01:00
Marnanel Thurman 68a1c3c8ac Add tophat_ui, which currently gives us a simple root page and no more. 2020-08-23 17:32:42 +01:00