Add about page

This commit is contained in:
Mark Veidemanis 2022-08-02 22:22:22 +01:00
parent b323ea2ae2
commit 473dfd1b43
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
3 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@ from django.views.generic import TemplateView
# Threshold API stuff
from core.api.views.threshold import ThresholdChans, ThresholdOnline, ThresholdUsers
from core.views import Billing, Cancel, Home, Order, Portal, Signup
from core.views import Billing, Cancel, About, Order, Portal, Signup
from core.views.callbacks import Callback
from core.views.manage.threshold.irc import (
ThresholdIRCActions,
@ -62,6 +62,7 @@ from core.views.ui.insights import (
urlpatterns = [
path("", Drilldown.as_view(), name="home"),
path("about/", About.as_view(), name="about"),
path("callback", Callback.as_view(), name="callback"),
path("billing/", Billing.as_view(), name="billing"),
path("order/<str:plan_name>/", Order.as_view(), name="order"),

View File

@ -89,7 +89,10 @@
<div id="bar" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="{% url 'home' %}">
Home
Search
</a>
<a class="navbar-item" href="{% url 'about' %}">
About
</a>
{% if user.is_authenticated %}
<a class="navbar-item" href="{% url 'billing' %}">

View File

@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
# Create your views here
class Home(View):
class About(View):
template_name = "index.html"
def get(self, request):