added member and visitor status + different colors in scoreboard

This commit is contained in:
Danhia 2022-01-23 18:40:57 +01:00
parent 52b3a71caf
commit bb97f1adc1
21 changed files with 317 additions and 197 deletions

View File

@ -0,0 +1,29 @@
# Generated by Django 3.1.5 on 2022-01-23 17:04
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('accounts', '0006_auto_20210608_2229'),
]
operations = [
migrations.AddField(
model_name='userprofileinfo',
name='member',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='userprofileinfo',
name='member_since',
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Member since'),
),
migrations.AddField(
model_name='userprofileinfo',
name='member_until',
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Member until'),
),
]

View File

@ -12,6 +12,9 @@ class UserProfileInfo(models.Model):
last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now) last_submission_date = models.DateTimeField('Last Submission Date', default=timezone.now)
token = models.CharField(max_length=200, blank=True) token = models.CharField(max_length=200, blank=True)
discord_id = models.CharField(max_length=20, null=True, blank=True, unique=True) discord_id = models.CharField(max_length=20, null=True, blank=True, unique=True)
member = models.BooleanField(default=False)
member_since = models.DateTimeField('Member since', default=timezone.now)
member_until = models.DateTimeField('Member until', default=timezone.now)
def __str__(self): def __str__(self):
return self.user.username return self.user.username
class Meta: class Meta:

View File

@ -52,7 +52,7 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li class="list-group-item">{% trans "Member since" %} {{ user.date_joined|date:"Y-m-d" }}</li> <li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
</ul> </ul>
</div> </div>
</div> </div>

View File

@ -2,10 +2,12 @@
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% load key_value %} {% load key_value %}
{% load is_member %}
{% ismember user.userprofileinfo as is_member %}
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-9"> <div class="col-sm-12 col-md-9">
<div> <div>
<h4>{% trans "Challenges Solved by" %} {{ user.username }}</h4> <h4>{% trans "Challenges Solved by" %} <span class="{{ is_member }}">{{ user.username }}</span></h4>
{% if solves%} {% if solves%}
<div class="table table-dark"> <div class="table table-dark">
@ -40,7 +42,7 @@
</div> </div>
<div class="d-none d-md-block col-10 col-md-3 right-sidebar"> <div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item">{{ user.username }}</li> <li class="list-group-item {{ is_member }}">{{ user.username }}</li>
<li class="list-group-item">{% trans "Score" %} : {{ score }}</li> <li class="list-group-item">{% trans "Score" %} : {{ score }}</li>
<li class="list-group-item">{% trans "Rank" %} : {{ rank }}</li> <li class="list-group-item">{% trans "Rank" %} : {{ rank }}</li>
{% if user.userprofileinfo.portfolio_site %} {% if user.userprofileinfo.portfolio_site %}
@ -50,7 +52,12 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
<li class="list-group-item">{% trans "Member since" %} {{ user.date_joined|date:"Y-m-d" }}</li> {% if member %}
<li class="list-group-item">{% trans "Status: Member" %}</li>
{% else %}
<li class="list-group-item">{% trans "Status: Visitor" %}</li>
{% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"d-m-Y" }}</li>
</ul> </ul>
<ul class="list-group"> <ul class="list-group">

View File

@ -15,6 +15,8 @@ from django.urls import reverse
from secrets import token_hex from secrets import token_hex
from accounts.models import UserProfileInfo from accounts.models import UserProfileInfo
from django.contrib.auth.models import timezone
from . import connection from . import connection
def signin(request): def signin(request):
@ -118,6 +120,10 @@ def profile(request, user_name):
user_obj = get_object_or_404(User, username=user_name) user_obj = get_object_or_404(User, username=user_name)
all_users = list(UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username')) all_users = list(UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username'))
rank = all_users.index(get_object_or_404(UserProfileInfo, user=user_obj)) + 1 rank = all_users.index(get_object_or_404(UserProfileInfo, user=user_obj)) + 1
if (user_obj.userprofileinfo.member and user_obj.userprofileinfo.member_until > timezone.now()):
member = True
else:
member = False
cats = Category.objects.all() cats = Category.objects.all()
pointDatas = {} pointDatas = {}
@ -144,7 +150,8 @@ def profile(request, user_name):
somme += s.ctf.points somme += s.ctf.points
solved.append([s.flag_date.timestamp() * 1000,somme]) solved.append([s.flag_date.timestamp() * 1000,somme])
return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas, 'rank': rank, 'score' : somme}) return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
'rank': rank, 'score' : somme, 'member' : member})
def rank(request, token): def rank(request, token):
all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username') all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username')

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,7 +24,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -36,7 +36,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -46,19 +46,19 @@ msgid "Apply"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
@ -94,46 +94,54 @@ msgstr ""
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "" msgstr ""
@ -154,33 +162,33 @@ msgstr ""
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "" msgstr ""
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "" msgstr ""
@ -467,23 +475,23 @@ msgstr ""
msgid "Russian" msgid "Russian"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,7 +24,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -36,7 +36,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -46,19 +46,19 @@ msgid "Apply"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
@ -94,46 +94,54 @@ msgstr ""
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "" msgstr ""
@ -154,33 +162,33 @@ msgstr ""
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "" msgstr ""
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "" msgstr ""
@ -467,23 +475,23 @@ msgstr ""
msgid "Russian" msgid "Russian"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,7 +24,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -36,7 +36,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -46,19 +46,19 @@ msgid "Apply"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
@ -94,46 +94,54 @@ msgstr ""
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "" msgstr ""
@ -154,33 +162,33 @@ msgstr ""
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "" msgstr ""
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "" msgstr ""
@ -467,23 +475,23 @@ msgstr ""
msgid "Russian" msgid "Russian"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,7 +24,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "Pseudo" msgstr "Pseudo"
@ -36,7 +36,7 @@ msgstr "Email"
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "Site internet" msgstr "Site internet"
@ -46,20 +46,20 @@ msgid "Apply"
msgstr "Appliquer" msgstr "Appliquer"
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "Score" msgstr "Score"
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "Membre depuis" msgstr "Inscrit depuis"
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos." msgid "Please, verify your infos."
@ -94,46 +94,54 @@ msgstr "Connexion"
msgid "Sign up" msgid "Sign up"
msgstr "Inscription" msgstr "Inscription"
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "Challenges résolus par" msgstr "Challenges résolus par"
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "Nom du challenge" msgstr "Nom du challenge"
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "Catégorie" msgstr "Catégorie"
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "Points" msgstr "Points"
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "Date" msgstr "Date"
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "Il semble que cet utilisateur n'a pas encore résolu de CTF..." msgstr "Il semble que cet utilisateur n'a pas encore résolu de CTF..."
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "Rang" msgstr "Rang"
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr "Status : Membre"
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr "Status : Visiteur"
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
#, fuzzy #, fuzzy
#| msgid "Categories" #| msgid "Categories"
@ -156,11 +164,11 @@ msgstr "Site personnel"
msgid "Register" msgid "Register"
msgstr "Inscription" msgstr "Inscription"
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "Votre compte était inactif." msgstr "Votre compte était inactif."
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
@ -168,23 +176,23 @@ msgstr ""
"Le mot de passe doit contenir au moins une lettre, un chiffre et un signe de " "Le mot de passe doit contenir au moins une lettre, un chiffre et un signe de "
"ponctuation." "ponctuation."
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "Un utilisateur avec cet email existe déjà." msgstr "Un utilisateur avec cet email existe déjà."
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "Un utilisateur avec ce pseudo existe déjà." msgstr "Un utilisateur avec ce pseudo existe déjà."
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "L'adresse mail est déjà utilisée." msgstr "L'adresse mail est déjà utilisée."
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "Le pseudo est déjà utilisé." msgstr "Le pseudo est déjà utilisé."
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "Mis à jour." msgstr "Mis à jour."
@ -487,23 +495,23 @@ msgstr "Français"
msgid "Russian" msgid "Russian"
msgstr "Russe" msgstr "Russe"
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "Début" msgstr "Début"
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "Précédente" msgstr "Précédente"
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "Page" msgstr "Page"
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "Suivante" msgstr "Suivante"
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "Fin" msgstr "Fin"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -24,7 +24,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -36,7 +36,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -46,19 +46,19 @@ msgid "Apply"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
@ -94,46 +94,54 @@ msgstr ""
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "" msgstr ""
@ -154,33 +162,33 @@ msgstr ""
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "" msgstr ""
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "" msgstr ""
@ -467,23 +475,23 @@ msgstr ""
msgid "Russian" msgid "Russian"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -26,7 +26,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12 #: ctfs/templates/ctfs/ctf_info.html:60 ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:70 #: events/templates/events/ctf_info.html:70
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "" msgstr ""
@ -38,7 +38,7 @@ msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:61 #: ctfs/templates/ctfs/ctf_info.html:61
#: events/templates/events/ctf_info.html:71 #: events/templates/events/ctf_info.html:71
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "" msgstr ""
@ -48,19 +48,19 @@ msgid "Apply"
msgstr "" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:44 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13 #: ctfs/templates/ctfs/ctf_info.html:62 ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: events/templates/events/event_info.html:87 #: events/templates/events/event_info.html:87
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "счет" msgstr "счет"
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:53 #: accounts/templates/accounts/profile.html:60
msgid "Member since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
@ -96,46 +96,54 @@ msgstr "Авторизоваться"
msgid "Sign up" msgid "Sign up"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:8 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:19 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:20 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "Категории" msgstr "Категории"
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63
#: events/templates/events/ctf_info.html:72 #: events/templates/events/ctf_info.html:72
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:37 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:45 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:62 #: events/templates/events/event_info.html:62
#: events/templates/events/event_info.html:85 #: events/templates/events/event_info.html:85
#: events/templates/events/manage_team.html:41 #: events/templates/events/manage_team.html:41
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:11 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "" msgstr ""
#: accounts/templates/accounts/profile.html:57 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member"
msgstr ""
#: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor"
msgstr ""
#: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "" msgstr ""
@ -156,33 +164,33 @@ msgstr ""
msgid "Register" msgid "Register"
msgstr "" msgstr ""
#: accounts/views/views.py:31 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "" msgstr ""
#: accounts/views/views.py:50 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:65 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "" msgstr ""
#: accounts/views/views.py:93 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:99 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "" msgstr ""
#: accounts/views/views.py:103 events/views/teams.py:122 #: accounts/views/views.py:105 events/views/teams.py:122
msgid "Updated." msgid "Updated."
msgstr "" msgstr ""
@ -477,23 +485,23 @@ msgstr ""
msgid "Russian" msgid "Russian"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:36 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:37 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:41 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:45 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:46 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: resources/templates/resources/42ctf.html:9 #: resources/templates/resources/42ctf.html:9
#: resources/templates/resources/resources.html:12 #: resources/templates/resources/resources.html:12
msgid "What is 42CTF ?" msgid "What is 42CTF ?"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: resources/templates/resources/42ctf.html:9 #: resources/templates/resources/42ctf.html:9
#: resources/templates/resources/resources.html:12 #: resources/templates/resources/resources.html:12
msgid "What is 42CTF ?" msgid "What is 42CTF ?"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: resources/templates/resources/42ctf.html:9 #: resources/templates/resources/42ctf.html:9
#: resources/templates/resources/resources.html:12 #: resources/templates/resources/resources.html:12
msgid "What is 42CTF ?" msgid "What is 42CTF ?"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -136,7 +136,9 @@ msgstr "42CTF est une association loi 1901 (loi française)."
#: resources/templates/resources/donate.html:14 #: resources/templates/resources/donate.html:14
msgid "You can support us by becoming a member and paying a fee of 15 euros." msgid "You can support us by becoming a member and paying a fee of 15 euros."
msgstr "Vous pouvez nous aider financièrement en devenant membre, au cout de 15 euros." msgstr ""
"Vous pouvez nous aider financièrement en devenant membre, au cout de 15 "
"euros."
#: resources/templates/resources/donate.html:15 #: resources/templates/resources/donate.html:15
msgid "Membership is then granted for 1 year." msgid "Membership is then granted for 1 year."
@ -151,21 +153,25 @@ msgid ""
"A different color for your pseudo in the scoreboard, to let everyone know " "A different color for your pseudo in the scoreboard, to let everyone know "
"you're a member. (not yet implemented but coming soon)" "you're a member. (not yet implemented but coming soon)"
msgstr "" msgstr ""
"Une couleur différente pour votre pseudo sur le scoreboard, pour que tout le monde sache que vous êtes membre (en cours de développement)." "Une couleur différente pour votre pseudo sur le scoreboard, pour que tout le "
"monde sache que vous êtes membre (en cours de développement)."
#: resources/templates/resources/donate.html:19 #: resources/templates/resources/donate.html:19
msgid "" msgid ""
"The possibility to play again past CTF, with challenges no longer available, " "The possibility to play again past CTF, with challenges no longer available, "
"in the form of private events with the people of your choice." "in the form of private events with the people of your choice."
msgstr "" msgstr ""
"La possibilité de jouer de nouveau aux CTF passés, avec des challenges qui ne sont plus disponibles, " "La possibilité de jouer de nouveau aux CTF passés, avec des challenges qui "
"sous la forme d'un événement privé avec les personnes de votre choix." "ne sont plus disponibles, sous la forme d'un événement privé avec les "
"personnes de votre choix."
#: resources/templates/resources/donate.html:20 #: resources/templates/resources/donate.html:20
msgid "" msgid ""
"Ex: you played Welcome CTF 2021, and want to play it again with your friends " "Ex: you played Welcome CTF 2021, and want to play it again with your friends "
"during one weekend." "during one weekend."
msgstr "Ex: vous avez joué au Welcome CTF 2021, et vous voulez renouveler l'expérience avec vos amis le temps d'un weekend." msgstr ""
"Ex: vous avez joué au Welcome CTF 2021, et vous voulez renouveler "
"l'expérience avec vos amis le temps d'un weekend."
#: resources/templates/resources/donate.html:21 #: resources/templates/resources/donate.html:21
msgid "Or you didn't play Welcome CTF 2021 because you were not eligible." msgid "Or you didn't play Welcome CTF 2021 because you were not eligible."
@ -173,7 +179,9 @@ msgstr "Ou au contraire vous n'avez pas joué car vous n'étiez pas éligible."
#: resources/templates/resources/donate.html:24 #: resources/templates/resources/donate.html:24
msgid "More advantages may come later, and you can submit us your ideas." msgid "More advantages may come later, and you can submit us your ideas."
msgstr "Plus d'avantages pourraient être disponibles plus tard, et vous pouvez nous soumettre vos idées." msgstr ""
"Plus d'avantages pourraient être disponibles plus tard, et vous pouvez nous "
"soumettre vos idées."
#: resources/templates/resources/donate.html:25 #: resources/templates/resources/donate.html:25
msgid "" msgid ""
@ -181,8 +189,9 @@ msgid ""
"will be equivalent to organize paid events, and we want 42CTF to remain FREE " "will be equivalent to organize paid events, and we want 42CTF to remain FREE "
"for all." "for all."
msgstr "" msgstr ""
"Cependant, nous n'organiserons pas de CTF en temps limité réservé aux membres, " "Cependant, nous n'organiserons pas de CTF en temps limité réservé aux "
"car cela serait équivalent à organiser des événements payants, and nous voulons que 42CTF reste GRATUIT pour tous." "membres, car cela serait équivalent à organiser des événements payants, and "
"nous voulons que 42CTF reste GRATUIT pour tous."
#: resources/templates/resources/donate.html:28 #: resources/templates/resources/donate.html:28
msgid "Donate to 42CTF" msgid "Donate to 42CTF"
@ -207,17 +216,17 @@ msgid ""
"If you're paying for your membership, don't forget to send us your first and " "If you're paying for your membership, don't forget to send us your first and "
"last name, as well as your 42CTF pseudo." "last name, as well as your 42CTF pseudo."
msgstr "" msgstr ""
"Si vous payez pour l'adhesion, n'oubliez pas de nous envoyer vos noms et prénoms, " "Si vous payez pour l'adhesion, n'oubliez pas de nous envoyer vos noms et "
"ainsi que votre pseudo 42CTF." "prénoms, ainsi que votre pseudo 42CTF."
#: resources/templates/resources/donate.html:46 #: resources/templates/resources/donate.html:46
msgid "" msgid ""
"We will only use thoe data to keep track of our members and grant you " "We will only use thoe data to keep track of our members and grant you "
"advantages, and we will never communicate them to any third party." "advantages, and we will never communicate them to any third party."
msgstr "" msgstr ""
"Nous utiliserons ces données exclusivement pour tenir compte de nos membres et vous accorder " "Nous utiliserons ces données exclusivement pour tenir compte de nos membres "
"des avantages, nous ne transmettrons jamais ces données à des tierces parties." "et vous accorder des avantages, nous ne transmettrons jamais ces données à "
"des tierces parties."
#: resources/templates/resources/edit.html:9 #: resources/templates/resources/edit.html:9
#: resources/templates/resources/resources.html:30 #: resources/templates/resources/resources.html:30

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,6 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: resources/templates/resources/42ctf.html:9 #: resources/templates/resources/42ctf.html:9
#: resources/templates/resources/resources.html:12 #: resources/templates/resources/resources.html:12
msgid "What is 42CTF ?" msgid "What is 42CTF ?"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-23 15:54+0000\n" "POT-Creation-Date: 2022-01-23 17:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -19,6 +19,7 @@ msgstr ""
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n" "%100>=11 && n%100<=14)? 2 : 3);\n"
#: resources/templates/resources/42ctf.html:9 #: resources/templates/resources/42ctf.html:9
#: resources/templates/resources/resources.html:12 #: resources/templates/resources/resources.html:12
msgid "What is 42CTF ?" msgid "What is 42CTF ?"

View File

@ -1,6 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% load is_member %}
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<div> <div>
@ -16,9 +17,10 @@
</thead> </thead>
<tbody> <tbody>
{% for s in scores %} {% for s in scores %}
{% ismember s.user.userprofileinfo as is_member %}
<tr> <tr>
<th scope="row"># {{ forloop.counter0|add:scores.start_index }}</th> <th scope="row"># {{ forloop.counter0|add:scores.start_index }}</th>
<th><a class="profile_link" href="{% url 'accounts:profile' user_name=s.user.username %}"> {{ s.user.username }}</a></th> <th><a class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=s.user.username %}"> {{ s.user.username }}</a></th>
<td> <td>
{% if s.user.userprofileinfo.portfolio_site %} {% if s.user.userprofileinfo.portfolio_site %}
<a href="{{ s.user.userprofileinfo.portfolio_site }}" target="_blank">{{ s.user.userprofileinfo.portfolio_site }}</a> <a href="{{ s.user.userprofileinfo.portfolio_site }}" target="_blank">{{ s.user.userprofileinfo.portfolio_site }}</a>

View File

View File

@ -0,0 +1,10 @@
from django import template
from django.contrib.auth.models import timezone
register = template.Library()
@register.simple_tag
def ismember(user):
if user.member and user.member_until > timezone.now():
return "is-member"
return ""

View File

@ -31,9 +31,6 @@ a:hover {
border: none; border: none;
background-color: #1d1d1d; background-color: #1d1d1d;
} }
a {
color: #4375aa;
}
.list-group-item:first-child { .list-group-item:first-child {
border-radius: 0; border-radius: 0;
background-color: #2d2d2d; background-color: #2d2d2d;
@ -362,3 +359,6 @@ footer {
width: unset; width: unset;
cursor: unset; cursor: unset;
} }
.is-member {
color: #2b908f;
}