diff --git a/resources/table.scss b/resources/table.scss index d313bfc..0e7ce33 100644 --- a/resources/table.scss +++ b/resources/table.scss @@ -89,17 +89,6 @@ text-align: left; } -#users-table .fullname-column { - min-width: 6em; - text-align: right !important; - border-right: none !important; -} - -#users-table .fullname-column span { - color: gray !important; - font-weight: 600; -} - #users-table th a { color: white; } \ No newline at end of file diff --git a/templates/contest/media-js.html b/templates/contest/media-js.html index a65cb1c..bfb4f22 100644 --- a/templates/contest/media-js.html +++ b/templates/contest/media-js.html @@ -56,7 +56,7 @@ } } - function renew_filter() { + function renew_filter(excludeBox=null) { var checkboxes = [ '#show-organizations-checkbox', '#show-fullnames-checkbox', @@ -69,6 +69,7 @@ ] for (var i of checkboxes) { + if (i === excludeBox) continue; var $box = $(i); if ($box.is(':checked')) { $box.prop('checked', false); @@ -79,6 +80,7 @@ var to_update = false; for (var i of checkboxes2) { + if (i === excludeBox) continue; var $box = $(i); if ($box.is(':checked')) { to_update = true; @@ -103,7 +105,7 @@ var is_virtual = []; $('.user-name').each(function() { - if($(this).children('sup').length) { + if($(this).children('sub').length) { is_virtual.push(1); } else is_virtual.push(0); @@ -123,6 +125,7 @@ success: function(HTML) { $('#users-table').html(HTML); highlightFirstSolve(); + renew_filter("#show-virtual-checkbox"); $('#loading-gif').hide(); if (!virtual && !friend) { get_initial_rank(); @@ -171,10 +174,10 @@ }); $('#show-organizations-checkbox').click(function () { - $('.organization-column').toggle(); + $('.organization').toggle(); }); $('#show-fullnames-checkbox').click(function () { - $('.fullname-column').toggle(); + $('.fullname').toggle(); }); {% if request.user.is_authenticated %} diff --git a/templates/contest/ranking-table.html b/templates/contest/ranking-table.html index 8a97818..ffd0ffa 100644 --- a/templates/contest/ranking-table.html +++ b/templates/contest/ranking-table.html @@ -6,34 +6,30 @@ {% if has_rating %} {{ _('Rating') }} {% endif %} - {{ _('Organization') }} - {{ _('Full Name') }} {% endblock %} {% block after_rank %} {% if has_rating %} {% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %} {% endif %} - - {% if user.organization %} - - {{- user.organization.short_name -}} - - {% endif %} - +{% endblock %} - - {% if user.user.first_name %} - - {{ user.user.first_name }} - - {% endif %} - +{% block user_footer %} + {% if user.user.first_name %} + + {% endif %} + {% if user.organization %} + + {% endif %} {% endblock %} {% block user_data %} {% if user.participation.virtual %} - [{{user.participation.virtual}}] + [{{user.participation.virtual}}] {% endif %} {% if can_edit %} diff --git a/templates/user/base-users-table.html b/templates/user/base-users-table.html index 9b75e49..35c51d0 100644 --- a/templates/user/base-users-table.html +++ b/templates/user/base-users-table.html @@ -19,7 +19,7 @@ {{ rank }} {% block after_rank scoped %}{% endblock %} - {{ link_user(user) }} {% block user_data scoped %}{% endblock %} +
{{ link_user(user) }}{% block user_footer scoped %}{% endblock %}
{% block user_data scoped %}{% endblock %} {% block before_point scoped %}{% endblock %} {% block point scoped %}