Skip to content

Commit

Permalink
legal time
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Nov 26, 2023
1 parent d598b82 commit ef6efca
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
3 changes: 2 additions & 1 deletion splashcat/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -46,6 +46,7 @@
path('@<str:username>/', users_views.profile, name='profile'),
path('@<str:username>/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')),
Expand Down
4 changes: 4 additions & 0 deletions splashcat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@
<div class="text-sm">This website is not affiliated with Nintendo. All product names, logos, and brands are
property of their respective owners.
</div>
<a href="{% url 'uploaders_information' %}" class="text-blue-500 underline">Information on Available
<a href="{% url 'uploaders_information' %}" class="text-blue-500 underline px-1">Information on Available
Uploaders</a>
<a href="{% url 'legal' %}" class="text-blue-500 underline px-1">Legal Stuff</a>
<div class="py-4 flex flex-row flex-wrap gap-4">
<a href="https://github.com/splashcat-ink/splashcat"
class="bg-purple-600 hover:bg-purple-700 rounded p-4 my-auto">GitHub</a>
Expand Down
13 changes: 13 additions & 0 deletions templates/splashcat/legal.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% extends "base.html" %}

{% block content %}
<h1 class="text-2xl font-splatoon1">
{% block title %}
Legal
{% endblock %}
</h1>

<!--suppress JSUnresolvedLibraryURL -->
<script src="https://gist.github.com/catgirlinspace/841c081e570b05bdd2efe081f7133491.js"></script>

{% endblock %}

0 comments on commit ef6efca

Please sign in to comment.