Show full name in the contest's scoreboard
This commit is contained in:
parent
4e611259ed
commit
cdf4768996
2 changed files with 25 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
<th>{{ _('Rating') }}</th>
|
<th>{{ _('Rating') }}</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th class="organization-column">{{ _('Organization') }}</th>
|
<th class="organization-column">{{ _('Organization') }}</th>
|
||||||
|
<th class="fullname-column" style="display: none;">Tên thật</th>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block after_rank %}
|
{% block after_rank %}
|
||||||
|
@ -20,6 +21,14 @@
|
||||||
</a></span>
|
</a></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td class="fullname-column" style="display: none;">
|
||||||
|
{% if user.user.first_name %}
|
||||||
|
<span class="fullname">
|
||||||
|
{{ user.user.first_name }}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block user_data %}
|
{% block user_data %}
|
||||||
|
|
|
@ -120,6 +120,16 @@
|
||||||
color: gray !important;
|
color: gray !important;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fullname-column {
|
||||||
|
text-align: right !important;
|
||||||
|
border-right: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullname-column span {
|
||||||
|
color: gray !important;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% if has_rating %}
|
{% if has_rating %}
|
||||||
|
@ -299,6 +309,9 @@
|
||||||
$('#show-organizations-checkbox').click(function () {
|
$('#show-organizations-checkbox').click(function () {
|
||||||
$('.organization-column').toggle();
|
$('.organization-column').toggle();
|
||||||
});
|
});
|
||||||
|
$('#show-fullnames-checkbox').click(function () {
|
||||||
|
$('.fullname-column').toggle();
|
||||||
|
});
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
$('#show-friends-checkbox').click(function() {
|
$('#show-friends-checkbox').click(function() {
|
||||||
let checked = $('#show-friends-checkbox').is(':checked');
|
let checked = $('#show-friends-checkbox').is(':checked');
|
||||||
|
@ -332,6 +345,9 @@
|
||||||
<input id="show-organizations-checkbox" type="checkbox" style="vertical-align: bottom">
|
<input id="show-organizations-checkbox" type="checkbox" style="vertical-align: bottom">
|
||||||
<label for="show-organizations-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show organizations') }}</label>
|
<label for="show-organizations-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show organizations') }}</label>
|
||||||
|
|
||||||
|
<input id="show-fullnames-checkbox" type="checkbox" style="vertical-align: bottom">
|
||||||
|
|
||||||
|
<label for="show-fullnames-checkbox" style="vertical-align: bottom; margin-right: 1em;">Hiển thị tên thật</label>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<input id="show-friends-checkbox" type="checkbox" style="vertical-align: bottom;">
|
<input id="show-friends-checkbox" type="checkbox" style="vertical-align: bottom;">
|
||||||
<label for="show-friends-checkbox" style="vertical-align: bottom;">{{ _('Show friends only') }}</label>
|
<label for="show-friends-checkbox" style="vertical-align: bottom;">{{ _('Show friends only') }}</label>
|
||||||
|
|
Loading…
Reference in a new issue