From: Georgios Atheridis Date: Sun, 22 Jan 2023 19:57:38 +0000 (+0000) Subject: Fixed some issues and implemented a final screen X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=78a687c0b6b6b0599ae7a35cf301c4a1c09ce480;p=ihaspeks%2Fclip-ranker.git Fixed some issues and implemented a final screen --- diff --git a/core/core/settings.py b/core/core/settings.py index 2d18b5f..e9ed006 100644 --- a/core/core/settings.py +++ b/core/core/settings.py @@ -164,4 +164,5 @@ ACCOUNT_EMAIL_VERIFICATION = "none" ACCOUNT_LOGOUT_ON_GET = False ACCOUNT_UNIQUE_EMAIL = False ACCOUNT_AUTHENTICATED_LOGIN_REDIRECT = True +LOGIN_REDIRECT_URL = "/" SOCIALACCOUNT_DISCONNECT_REDIRECT_URL = "/" diff --git a/core/manager/templates/manager/final.html b/core/manager/templates/manager/final.html index e3f4e82..846ee33 100644 --- a/core/manager/templates/manager/final.html +++ b/core/manager/templates/manager/final.html @@ -1,7 +1,81 @@ {% extends 'base.html' %} {% block content %} -{% for video in videos %} -{{ video.rank }} -{% endfor %} + + + + {% for video in videos %} + {% if video.rank == 5 %} + + {% endif %} + {% endfor %} + + + + {% for video in videos %} + {% if video.rank == 4 %} + + {% endif %} + {% endfor %} + + + + {% for video in videos %} + {% if video.rank == 3 %} + + {% endif %} + {% endfor %} + + + + {% for video in videos %} + {% if video.rank == 2 %} + + {% endif %} + {% endfor %} + + + + {% for video in videos %} + {% if video.rank == 1 %} + + {% endif %} + {% endfor %} + +
Rank 5 + +
Rank 4 + +
Rank 3 + +
Rank 2 + +
Rank 1 + +
{% endblock %} diff --git a/core/static/main.css b/core/static/main.css index ce7fdb5..4ca4565 100644 --- a/core/static/main.css +++ b/core/static/main.css @@ -50,9 +50,12 @@ button.btn:focus { padding: 16px; text-decoration: none; display: block; - } +button.btn:active { + background-color: #222; + color: #eee; +} a.btn { @@ -65,6 +68,11 @@ a:hover.btn { background-color: #ddd; color: black; } +a:active.btn { + background-color: #222; + color: #eee; +} + .btn-bot { position: absolute; @@ -126,3 +134,9 @@ a:hover.btn { background-color: #EEEEEE; } + +.rank-btn:active { + background-color: #111111; + color: #DDD; +} + diff --git a/core/templates/base.html b/core/templates/base.html index cda10b3..d786b03 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -15,12 +15,15 @@
Home - {% if user.is_authenticated %} + {% if user.is_superuser %} Rank {% endif %} {% if user.is_superuser %} Admin {% endif %} + {% if user.is_superuser %} + Results + {% endif %} {% if user.is_authenticated %}
{% csrf_token %}