diff --git a/README.md b/README.md index a03bf98..4d2708d 100644 --- a/README.md +++ b/README.md @@ -20,3 +20,12 @@ but there will be. * [bowler-heavy](docs/bowler-heavy.md) was a historical course change that may still affect the state of the codebase. * [Why the name?](docs/name.md) + +## Licence + +kepi is distributed under version 2 of the GNU General Public License. + +Some Mastodon-based tests are included in the source distribution. These are copyright (C) 2016-2019 Eugen Rochko & other Mastodon contributors. They are released under the GNU Affero General Public License, version 3. + +The base template is based on the Clean Blog template by Start Bootstrap. This is copyright (c) 2013-2020 Start Bootstrap LLC. It's distributed under the MIT license. + diff --git a/kepi/tophat_ui/templates/base.html b/kepi/tophat_ui/templates/base.html new file mode 100644 index 0000000..3a65083 --- /dev/null +++ b/kepi/tophat_ui/templates/base.html @@ -0,0 +1,78 @@ + + + +
+ + + + +- If you can see this message, - Kepi is installed correctly. -
+{% extends 'base.html' %} -- I appreciate that this message is not particularly - interesting or helpful. This will change in - later releases. -
- -- You might like to visit the admin console - now, to set things up. -
- -- Love and hugs. -
- - +{% block content %}Welcome to this kepi instance. It's not properly set up yet.{% endblock %} diff --git a/kepi/tophat_ui/views.py b/kepi/tophat_ui/views.py index 721094b..29bc0e2 100644 --- a/kepi/tophat_ui/views.py +++ b/kepi/tophat_ui/views.py @@ -9,6 +9,7 @@ logger = logging.getLogger(name='kepi') from django.views import View from django.shortcuts import render +from django.conf import settings class RootPageView(View): @@ -19,7 +20,10 @@ class RootPageView(View): result = render( request=request, template_name='root-page.html', - content_type='text/html', + context = { + 'title': settings.KEPI['INSTANCE_NAME'], + 'subtitle': settings.KEPI['INSTANCE_DESCRIPTION'], + }, ) return result