Skip to content

Commit

Permalink
Fix the server errors on this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBanzon committed Nov 10, 2023
1 parent a1295fc commit b85cca9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ACMAS/app/ACMAS_Web/templates/_base.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- templates/_base.html -->
{% load static %}
{% load component_tags %}
{% with mode = "dark" %}
{% with mode="light" %}
<!DOCTYPE html>
<html lang="en" class={{ mode }}>
<html lang="en" class={{mode}}>

{% block head %}

Expand Down Expand Up @@ -175,5 +175,5 @@
</ul>
</footer>
{% endblock body %}

{% endwith %}
</html>
4 changes: 3 additions & 1 deletion ACMAS/app/ACMAS_Web/templates/darkmode.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% with mode="dark" %}
{% extends '_base.html' %}
{% load component_tags %}

Expand Down Expand Up @@ -29,4 +30,5 @@
</div>
</div>
{% endblock content %}
<h1>This is a test of cookies</h1>
<h1>This is a test</h1>
{% endwith %}
2 changes: 1 addition & 1 deletion ACMAS/app/ACMAS_Web/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
path("pdfReader", views.pdfReader, name="pdfReader"),
path("upload-file", views.uploadFile, name="uploadFile"),
path("upload-manually", views.uploadManually, name="uploadManually"),
path("dark-mode", views.darkMode, name="darkMode"),
path("dark-mode", views.darkmode, name="darkMode"),
path("sitemap.xml", views.sitemap, name="sitemap"),
path("favicon.ico", views.favicon, name="favicon"),
path("robots.txt", views.robots, name="robots"),
Expand Down
5 changes: 5 additions & 0 deletions ACMAS/app/ACMAS_Web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,8 @@ def register(request):
def profile(request):
context = generateContext(request)
return render(request, "profile.html", context)


def darkmode(request):
context = generateContext(request)
return render(request, "darkmode.html", context)

0 comments on commit b85cca9

Please sign in to comment.