changed color in top 10 + updated resources

This commit is contained in:
Danhia 2022-01-23 18:45:10 +01:00
parent 79c74e1946
commit aea1ecda15
10 changed files with 16 additions and 12 deletions

View File

@ -53,7 +53,7 @@
</li>
{% endif %}
{% if member %}
<li class="list-group-item">{% trans "Status: Member" %}</li>
<li class="list-group-item is-member">{% trans "Status: Member" %}</li>
{% else %}
<li class="list-group-item">{% trans "Status: Visitor" %}</li>
{% endif %}

View File

@ -2,6 +2,7 @@
{% block content %}
{% load i18n %}
{% get_current_language as lang %}
{% load is_member %}
<div class="row">
<div class="col-lg-9 col-sm-12 news-card">
{% if news %}
@ -44,9 +45,12 @@
{% endif %}
</ul>
<ul class="list-group">
<li class="list-group-item active">Top 10</li>
<li class="list-group-item">Top 10</li>
{% for t in top %}
<li class="list-group-item"># {{ forloop.counter }} <a class="profile_link" href="{% url 'accounts:profile' user_name=t.user.username %}"> {{ t.user.username }}</a> <span style="position:absolute;right: 15px;">{{ t.score }}</span></li>
{% ismember t.user.userprofileinfo as is_member %}
<li class="list-group-item"># {{ forloop.counter }}
<a class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=t.user.username %}"> {{ t.user.username }}</a>
<span style="position:absolute;right: 15px;">{{ t.score }}</span></li>
{% endfor %}
</ul>
<ul class="list-group">

View File

@ -149,7 +149,7 @@ msgstr ""
#: resources/templates/resources/donate.html:18
msgid ""
"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."
msgstr ""
#: resources/templates/resources/donate.html:19

View File

@ -149,7 +149,7 @@ msgstr ""
#: resources/templates/resources/donate.html:18
msgid ""
"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."
msgstr ""
#: resources/templates/resources/donate.html:19

View File

@ -149,7 +149,7 @@ msgstr ""
#: resources/templates/resources/donate.html:18
msgid ""
"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."
msgstr ""
#: resources/templates/resources/donate.html:19

View File

@ -151,10 +151,10 @@ msgstr "Lorsque vous adherez à 42CTF, vous obtenez les avantages suivants :"
#: resources/templates/resources/donate.html:18
msgid ""
"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."
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)."
"monde sache que vous êtes membre."
#: resources/templates/resources/donate.html:19
msgid ""

View File

@ -149,7 +149,7 @@ msgstr ""
#: resources/templates/resources/donate.html:18
msgid ""
"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."
msgstr ""
#: resources/templates/resources/donate.html:19

View File

@ -151,7 +151,7 @@ msgstr ""
#: resources/templates/resources/donate.html:18
msgid ""
"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."
msgstr ""
#: resources/templates/resources/donate.html:19

View File

@ -15,7 +15,7 @@
{% trans "Membership is then granted for 1 year." %}<br><br>
{% trans "When you become a member, you gain the following advantages:" %}<br>
- {% trans "A different color for your pseudo in the scoreboard, to let everyone know you're a member. (not yet implemented but coming soon)" %}<br>
- {% trans "A different color for your pseudo in the scoreboard, to let everyone know you're a member." %}<br>
- {% trans "The possibility to play again past CTF, with challenges no longer available, in the form of private events with the people of your choice." %}<br>
{% trans "Ex: you played Welcome CTF 2021, and want to play it again with your friends during one weekend." %}
{% trans "Or you didn't play Welcome CTF 2021 because you were not eligible." %}

View File

@ -79,7 +79,7 @@ pre {
}
.list-group a {
text-decoration: none;
color: #4375aa;
/* color: #4375aa; */
}
.list-group a:hover {
text-decoration: none;