From 0f92cf3da13bff3151f566afaa040f1b53e293a3 Mon Sep 17 00:00:00 2001 From: ix <0x00fi@protonmail.com> Date: Wed, 8 Sep 2021 16:53:00 +0200 Subject: [PATCH] Categories stats added, css modified, fix responsive display of profile page --- src/accounts/templates/accounts/profile.html | 237 ++++--------------- src/accounts/views/views.py | 15 +- src/project/settings.py | 2 +- src/static/css/style.css | 4 + src/statics/css/style.css | 4 + 5 files changed, 56 insertions(+), 206 deletions(-) diff --git a/src/accounts/templates/accounts/profile.html b/src/accounts/templates/accounts/profile.html index 9be17d5..6ae3fbb 100644 --- a/src/accounts/templates/accounts/profile.html +++ b/src/accounts/templates/accounts/profile.html @@ -4,6 +4,32 @@ {% load key_value %}
+

Challenges Solved by {{ user.username }}

{% if solves%} @@ -51,206 +77,25 @@ {% endif %}
  • {% trans "Member since" %} {{ user.date_joined|date:"Y-m-d" }}
  • + +
      +
    • {% trans "Categories stats" %}
    • + {% for cat in catsDatas %} +
    • + {{ cat.0 }} +
      +
      {{ cat.3 }} %
      +
      +
    • + {% endfor %} +
    -