From ef6efca047d516db2c52a442389c061d6258df08 Mon Sep 17 00:00:00 2001 From: kitt Date: Sun, 26 Nov 2023 00:20:39 -0500 Subject: [PATCH] legal time --- splashcat/urls.py | 3 ++- splashcat/views.py | 4 ++++ templates/base.html | 3 ++- templates/splashcat/legal.html | 13 +++++++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 templates/splashcat/legal.html diff --git a/splashcat/urls.py b/splashcat/urls.py index 70fbb4df..19655747 100644 --- a/splashcat/urls.py +++ b/splashcat/urls.py @@ -23,7 +23,7 @@ from battles.sitemaps import BattlesSitemap from splashcat import settings from splashcat.sitemaps import StaticViewSitemap -from splashcat.views import home, sponsor, uploaders_information, health_check, robots_txt +from splashcat.views import home, sponsor, uploaders_information, health_check, robots_txt, legal from users.sitemaps import UsersSitemap sitemaps = { @@ -46,6 +46,7 @@ path('@/', users_views.profile, name='profile'), path('@/battles/', users_views.profile_battle_list, name='profile_battles_list'), path('sponsor/', sponsor, name='sponsor'), + path('legal/', legal, name='legal'), path('uploaders-information/', uploaders_information, name='uploaders_information'), path('health-check/', health_check, name='health_check'), path('i18n/', include('django.conf.urls.i18n')), diff --git a/splashcat/views.py b/splashcat/views.py index fc57b5aa..c9909b2a 100644 --- a/splashcat/views.py +++ b/splashcat/views.py @@ -30,6 +30,10 @@ def sponsor(request): }) +def legal(request): + return render(request, 'splashcat/legal.html') + + def uploaders_information(request): developer_usernames = ["Joy"] developer_users = User.objects.filter(username__in=developer_usernames) diff --git a/templates/base.html b/templates/base.html index 9d1c3771..38a31cb6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -74,8 +74,9 @@
This website is not affiliated with Nintendo. All product names, logos, and brands are property of their respective owners.
- Information on Available + Information on Available Uploaders + Legal Stuff
GitHub diff --git a/templates/splashcat/legal.html b/templates/splashcat/legal.html new file mode 100644 index 00000000..9d104799 --- /dev/null +++ b/templates/splashcat/legal.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} +

+ {% block title %} + Legal + {% endblock %} +

+ + + + +{% endblock %} \ No newline at end of file