diff --git a/502.html b/502.html index 4eb512a..98f4dbb 100644 --- a/502.html +++ b/502.html @@ -1,7 +1,7 @@ - 502 bad gateway - DMOJ + 502 bad gateway - LQDOJ {% endblock %} @@ -32,6 +84,24 @@ '{{ _('Joining a contest for the first time starts your timer, after which it becomes unstoppable.') }}'); }); + function makeToggleBtn(btn, divElement) { + btn.click(function() { + divElement.toggle(300); + + if (btn.html().trim() === '{{ _('Hide')}}') { + btn.html('{{ _('Show')}}'); + } + else { + btn.html('{{ _('Hide')}}'); + } + }); + } + + makeToggleBtn($("#ongoing-btn"), $("#ongoing-table")); + + $('#search-org').select2({multiple: 1, placeholder: '{{ _('Organizations...') }}'}) + .css({'visibility': 'visible'}); + // var tooltip_classes = 'tooltipped tooltipped-e'; // // $('.contest-tag').each(function () { @@ -144,6 +214,20 @@ {% block body %}
+ +
+ + + + +
{% if active_participations %}

{{ _('Active Contests') }}

@@ -187,41 +271,52 @@ {% endif %} {% if current_contests %} -

{{ _('Ongoing Contests') }}

-
- - - - - {% if not request.in_contest %} - +

+ {{ _('Ongoing Contests') }} +

- - - {% for contest in current_contests %} + + +
+
{{ _('Contest') }}{{ _('Users') }}
+ - - - {{ contest_join(contest, request) }} + + + {% if not request.in_contest %} + + {% endif %} - {% endfor %} - -
-
- {{ contest_head(contest) }} - {% if contest.start_time %} -
- {% if contest.time_before_end %} - {{ _('Ends in %(countdown)s', countdown=contest.time_before_end|as_countdown) }} - {% endif %} - {{ time_left(contest) }} - {% endif %} -
-
- {{ user_count(contest, request.user) }} - {{ _('Contest') }}{{ _('Users') }}
-
+ + + {% for contest in current_contests %} + + +
+ {{ contest_head(contest) }} + {% if contest.start_time %} +
+ {% if contest.time_before_end %} + {{ _('Ends in %(countdown)s', countdown=contest.time_before_end|as_countdown) }} + {% endif %} + {{ time_left(contest) }} + {% endif %} +
+ + + {{ user_count(contest, request.user) }} + + {{ contest_join(contest, request) }} + + {% endfor %} + + +
+
{% endif %}

{{ _('Upcoming Contests') }}

diff --git a/templates/problem/list.html b/templates/problem/list.html index 0f70a7e..0054d24 100644 --- a/templates/problem/list.html +++ b/templates/problem/list.html @@ -3,13 +3,17 @@ {% block media %} {% if not request.in_contest %}