diff --git a/judge/views/contests.py b/judge/views/contests.py index 1403e71..b5e09cd 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -964,7 +964,7 @@ class ContestStats(TitleMixin, ContestMixin, DetailView): ContestRankingProfile = namedtuple( "ContestRankingProfile", - "id user points cumtime tiebreaker participation " + "id user username points cumtime tiebreaker participation " "participation_rating problem_cells result_cell", ) @@ -985,6 +985,7 @@ def make_contest_ranking_profile( return ContestRankingProfile( id=user.id, user=user, + username=user.username, points=points, cumtime=cumtime, tiebreaker=participation.tiebreaker, diff --git a/resources/blog.scss b/resources/blog.scss index e8f626c..eec90ba 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -304,7 +304,7 @@ display: flex; background: inherit; gap: 0.3em; - overflow-x: scroll; + overflow-x: auto; } .blog-box { diff --git a/resources/table.scss b/resources/table.scss index b0819d6..e29691e 100644 --- a/resources/table.scss +++ b/resources/table.scss @@ -16,16 +16,18 @@ background: white; } + &.no-border { + td, th { + border: none; + } + } + td:first-child { border-color: $border_gray; border-width: 1px 1px 0 1px; } tr:last-child td { - &:first-child { - border: 1px solid $border_gray; - } - border-color: $border_gray; border-width: 1px 1px 1px 0; } diff --git a/resources/users.scss b/resources/users.scss index e0629f9..44aacd8 100644 --- a/resources/users.scss +++ b/resources/users.scss @@ -167,6 +167,11 @@ th.header.rank { color: gray !important; font-weight: 600; } + + .rank-td { + font-weight: bold; + width: 2em; + } } #search-form { diff --git a/templates/user/base-users-table.html b/templates/user/base-users-table.html index c442b0b..766da9c 100644 --- a/templates/user/base-users-table.html +++ b/templates/user/base-users-table.html @@ -1,6 +1,6 @@ - {{ rank_header or _("Rank") }} + {{ rank_header or "" }} {% block after_rank_head %}{% endblock %} {{ _('Username') }}{% block username_head_extra %}{% endblock %} {% block before_point_head %}{% endblock %} diff --git a/templates/user/base-users-two-col.html b/templates/user/base-users-two-col.html index f1d459a..53cfa69 100644 --- a/templates/user/base-users-two-col.html +++ b/templates/user/base-users-two-col.html @@ -24,8 +24,8 @@ {% block before_table %}{% endblock %} -
- +
+
{% block users_table %}{% endblock %}
diff --git a/templates/user/users-table.html b/templates/user/users-table.html index 4424007..676f9d6 100644 --- a/templates/user/users-table.html +++ b/templates/user/users-table.html @@ -5,7 +5,7 @@ {% endblock %} {% block after_rank %} - + {% endblock %} {% block user_footer %}