From 6337a0dcdb4cb4849c22a666a0130c2c8541f58a Mon Sep 17 00:00:00 2001 From: Danhia Date: Wed, 2 Feb 2022 19:23:13 +0100 Subject: [PATCH] added different color for members almost everywhere --- src/ctfs/templates/ctfs/ctf_info.html | 9 +- src/events/templates/events/ctf_info.html | 9 +- src/events/templates/events/event_info.html | 8 +- src/locale/de/LC_MESSAGES/django.po | 121 +++++++++--------- src/locale/en/LC_MESSAGES/django.po | 121 +++++++++--------- src/locale/es/LC_MESSAGES/django.po | 121 +++++++++--------- src/locale/fr/LC_MESSAGES/django.po | 121 +++++++++--------- src/locale/it/LC_MESSAGES/django.po | 121 +++++++++--------- src/locale/ru/LC_MESSAGES/django.po | 121 +++++++++--------- src/resources/locale/de/LC_MESSAGES/django.po | 2 +- src/resources/locale/en/LC_MESSAGES/django.po | 2 +- src/resources/locale/es/LC_MESSAGES/django.po | 2 +- src/resources/locale/fr/LC_MESSAGES/django.po | 2 +- src/resources/locale/it/LC_MESSAGES/django.po | 2 +- src/resources/locale/ru/LC_MESSAGES/django.po | 2 +- 15 files changed, 401 insertions(+), 363 deletions(-) diff --git a/src/ctfs/templates/ctfs/ctf_info.html b/src/ctfs/templates/ctfs/ctf_info.html index e027fe9..3eab7f2 100644 --- a/src/ctfs/templates/ctfs/ctf_info.html +++ b/src/ctfs/templates/ctfs/ctf_info.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block content %} {% load i18n %} +{% load is_member %}
@@ -66,7 +67,8 @@ {% for s in solved_list %} - {{ s.user.username }} + {% ismember s.user.userprofileinfo as is_member %} + {{ s.user.username }} {{ s.user.userprofileinfo.portfolio_site }} {{ s.user.userprofileinfo.score }} {{ s.flag_date }} @@ -81,8 +83,9 @@
diff --git a/src/events/templates/events/ctf_info.html b/src/events/templates/events/ctf_info.html index d3c7b39..3a95a52 100644 --- a/src/events/templates/events/ctf_info.html +++ b/src/events/templates/events/ctf_info.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% block content %} {% load i18n %} +{% load is_member %}
@@ -75,8 +76,9 @@ {% for s in solved_list %} {% if event.team_size == 1%} + {% ismember s.0.userprofileinfo as is_member %} - {{ s.0.username }} + {{ s.0.username }} {{ s.0.userprofileinfo.portfolio_site }} {{ s.1 }} @@ -96,9 +98,10 @@
diff --git a/src/events/templates/events/event_info.html b/src/events/templates/events/event_info.html index f7b9cb6..81a1bf2 100644 --- a/src/events/templates/events/event_info.html +++ b/src/events/templates/events/event_info.html @@ -2,6 +2,7 @@ {% block content %} {% load i18n %} {% load is_flagged %} +{% load is_member %}
{% if subisover == True %} @@ -68,9 +69,10 @@ {% for s in solved_list %} + {% ismember s.user.userprofileinfo as is_member %} # {{ forloop.counter0|add:1 }} - {{ s.user.username }} + {{ s.user.username }} {{ s.user.userprofileinfo.site }} {{ s.score }} @@ -108,8 +110,8 @@