Merge branch 'master' of https://github.com/LQDJudge/online-judge
This commit is contained in:
commit
e62a6e4fbd
2 changed files with 26 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
<th>{{ _('Rating') }}</th>
|
||||
{% endif %}
|
||||
<th class="organization-column">{{ _('Organization') }}</th>
|
||||
<th class="fullname-column" style="display: none;">Tên thật</th>
|
||||
{% endblock %}
|
||||
|
||||
{% block after_rank %}
|
||||
|
@ -20,6 +21,14 @@
|
|||
</a></span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td class="fullname-column" style="display: none;">
|
||||
{% if user.user.first_name %}
|
||||
<span class="fullname">
|
||||
{{ user.user.first_name }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endblock %}
|
||||
|
||||
{% block user_data %}
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
}
|
||||
|
||||
.points {
|
||||
min-width: 4em;
|
||||
min-width: 2.5em;
|
||||
}
|
||||
|
||||
.disqualified {
|
||||
|
@ -120,6 +120,16 @@
|
|||
color: gray !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.fullname-column {
|
||||
text-align: right !important;
|
||||
border-right: none !important;
|
||||
}
|
||||
|
||||
.fullname-column span {
|
||||
color: gray !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% if has_rating %}
|
||||
|
@ -299,6 +309,9 @@
|
|||
$('#show-organizations-checkbox').click(function () {
|
||||
$('.organization-column').toggle();
|
||||
});
|
||||
$('#show-fullnames-checkbox').click(function () {
|
||||
$('.fullname-column').toggle();
|
||||
});
|
||||
{% if request.user.is_authenticated %}
|
||||
$('#show-friends-checkbox').click(function() {
|
||||
let checked = $('#show-friends-checkbox').is(':checked');
|
||||
|
@ -332,6 +345,9 @@
|
|||
<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>
|
||||
|
||||
<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 %}
|
||||
<input id="show-friends-checkbox" type="checkbox" style="vertical-align: bottom;">
|
||||
<label for="show-friends-checkbox" style="vertical-align: bottom;">{{ _('Show friends only') }}</label>
|
||||
|
|
Loading…
Reference in a new issue