diff --git a/kepi/tophat_ui/templates/home-page.html b/kepi/tophat_ui/templates/home-page.html
new file mode 100644
index 0000000..4460b5e
--- /dev/null
+++ b/kepi/tophat_ui/templates/home-page.html
@@ -0,0 +1,3 @@
+{% extends 'base.html' %}
+
+{% block content %}home{% endblock %}
diff --git a/kepi/tophat_ui/templates/navbar.html b/kepi/tophat_ui/templates/navbar.html
index cb54de8..328ef7e 100644
--- a/kepi/tophat_ui/templates/navbar.html
+++ b/kepi/tophat_ui/templates/navbar.html
@@ -1,6 +1,6 @@
-
- Home
+ Home
{% if user.is_authenticated %}
-
diff --git a/kepi/tophat_ui/urls.py b/kepi/tophat_ui/urls.py
index 71d31dd..39c136a 100644
--- a/kepi/tophat_ui/urls.py
+++ b/kepi/tophat_ui/urls.py
@@ -31,4 +31,8 @@ urlpatterns = [
default = tophat_views.StatusPage.as_view(),
)),
+ path('home',
+ tophat_views.HomePage.as_view(),
+ ),
+
]
diff --git a/kepi/tophat_ui/views.py b/kepi/tophat_ui/views.py
index 10107bf..9c366d3 100644
--- a/kepi/tophat_ui/views.py
+++ b/kepi/tophat_ui/views.py
@@ -10,7 +10,8 @@ logger = logging.getLogger(name='kepi')
from django.views import View
from django.shortcuts import render
from django.conf import settings
-
+from django.contrib.auth.decorators import login_required
+from django.utils.decorators import method_decorator
import kepi.trilby_api.models as trilby_models
class RootPage(View):
@@ -96,3 +97,21 @@ class StatusPage(View):
)
return result
+
+class HomePage(View):
+
+ @method_decorator(login_required)
+ def get(self, request,
+ *args, **kwargs):
+
+ logger.info("Serving home page for current user",
+ )
+
+ result = render(
+ request=request,
+ template_name='home-page.html',
+ context = {
+ },
+ )
+
+ return result