diff --git a/judge/views/contests.py b/judge/views/contests.py index 5873fd4..743ea30 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -988,7 +988,7 @@ def contest_ranking_ajax(request, contest, participation=None): class ContestRankingBase(ContestMixin, TitleMixin, DetailView): template_name = "contest/ranking.html" - tab = None + page_type = None def get_title(self): raise NotImplementedError() @@ -1008,12 +1008,12 @@ class ContestRankingBase(ContestMixin, TitleMixin, DetailView): users, problems = self.get_ranking_list() context["users"] = users context["problems"] = problems - context["tab"] = self.tab + context["page_type"] = self.page_type return context class ContestRanking(ContestRankingBase): - tab = "ranking" + page_type = "ranking" def get_title(self): return _("%s Rankings") % self.object.name @@ -1039,7 +1039,7 @@ class ContestRanking(ContestRankingBase): class ContestParticipationList(LoginRequiredMixin, ContestRankingBase): - tab = "participation" + page_type = "participation" def get_title(self): if self.profile == self.request.profile: diff --git a/judge/widgets/select2.py b/judge/widgets/select2.py index 3439689..8329e42 100644 --- a/judge/widgets/select2.py +++ b/judge/widgets/select2.py @@ -48,9 +48,7 @@ from django.urls import reverse_lazy from django.utils.http import urlencode DEFAULT_SELECT2_JS = settings.STATIC_URL + "libs/select2/select2.js" -DEFAULT_SELECT2_CSS = settings.STATIC_URL + ( - "libs/select2/select2.css" -) +DEFAULT_SELECT2_CSS = settings.STATIC_URL + ("libs/select2/select2.css") __all__ = [ "Select2Widget", diff --git a/resources/blog.scss b/resources/blog.scss index 465f058..e327686 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -173,14 +173,13 @@ } .left-sidebar-item { + display: flex; + align-items: center; .sidebar-icon { font-size: large; - width: 1.2em; display: inline-block; - i { - position: relative; - bottom: -1.5px; + width: 1.4em; } } } @@ -271,12 +270,12 @@ } .middle-content { - max-width: 65%; - margin-left: 13%; + max-width: 75%; + width: -webkit-fill-available; } .blog-sidebar, .right-sidebar { - width: 20%; + width: 25%; } .left-sidebar { diff --git a/resources/contest.scss b/resources/contest.scss index 246f48c..efc6e50 100644 --- a/resources/contest.scss +++ b/resources/contest.scss @@ -91,7 +91,6 @@ } #banner { - border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding-bottom: 1em; a.date { diff --git a/templates/contest/calendar.html b/templates/contest/calendar.html index f79b3e2..e35a4ea 100644 --- a/templates/contest/calendar.html +++ b/templates/contest/calendar.html @@ -1,12 +1,22 @@ -{% extends "base.html" %} -{% block title_ruler %}{% endblock %} +{% extends "two-column-content.html" %} +{% set page_type = 'calendar' %} -{% block title_row %} - {% set tab = 'calendar' %} +{% block left_sidebar %} {% include "contest/contest-list-tabs.html" %} {% endblock %} -{% block body %} +{% block middle_content %} +
{{ _('Sunday') }} | diff --git a/templates/contest/contest-datetime.html b/templates/contest/contest-datetime.html new file mode 100644 index 0000000..470661b --- /dev/null +++ b/templates/contest/contest-datetime.html @@ -0,0 +1,53 @@ + + \ No newline at end of file diff --git a/templates/contest/contest-list-tabs.html b/templates/contest/contest-list-tabs.html index 1687831..66e565a 100644 --- a/templates/contest/contest-list-tabs.html +++ b/templates/contest/contest-list-tabs.html @@ -1,26 +1,5 @@ -{% extends "tabs-base.html" %} - -{% block post_tab_spacer %} - {% if tab == 'calendar' %} -
---|