2022-04-13 05:52:03 +00:00
|
|
|
{% extends "three-column-content.html" %}
|
|
|
|
{% block three_col_media %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% include "blog/media-css.html" %}
|
|
|
|
<style>
|
2022-04-13 05:52:03 +00:00
|
|
|
@media (max-width: 799px) {
|
2020-06-12 23:01:53 +00:00
|
|
|
.title {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
2022-04-13 05:52:03 +00:00
|
|
|
@media (min-width: 800px) {
|
|
|
|
#event-tab {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-06-12 15:48:44 +00:00
|
|
|
.time {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
|
|
|
.no-clarifications-message {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2020-06-12 15:48:44 +00:00
|
|
|
|
|
|
|
h3 a {
|
|
|
|
color: lightcyan;
|
|
|
|
}
|
2021-07-19 01:22:44 +00:00
|
|
|
|
|
|
|
#add-clarification {
|
|
|
|
float: left;
|
|
|
|
color: chartreuse;
|
|
|
|
}
|
|
|
|
#add-clarification:hover {
|
|
|
|
color: cyan;
|
|
|
|
}
|
2020-01-21 06:35:58 +00:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-04-13 05:52:03 +00:00
|
|
|
{% block three_col_js %}
|
2020-01-21 06:35:58 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('.time-remaining').each(function () {
|
|
|
|
count_down($(this));
|
|
|
|
});
|
|
|
|
|
2022-04-13 05:52:03 +00:00
|
|
|
$('.right-sidebar').hide();
|
|
|
|
$('#event-tab').click(function (e) {
|
2020-01-21 06:35:58 +00:00
|
|
|
e.preventDefault();
|
2022-04-13 05:52:03 +00:00
|
|
|
$('.left-sidebar-item').removeClass('active');
|
2020-01-21 06:35:58 +00:00
|
|
|
$('#event-tab').addClass('active');
|
2022-04-13 05:52:03 +00:00
|
|
|
$('.middle-content').hide();
|
|
|
|
$('.right-sidebar').show();
|
2022-03-21 21:09:16 +00:00
|
|
|
});
|
2020-01-21 06:35:58 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
|
2022-04-13 05:52:03 +00:00
|
|
|
{% block left_sidebar %}
|
|
|
|
<div class="left-sidebar">
|
|
|
|
{{ make_tab_item('blog', 'fa fa-rss', url('home'), _('News')) }}
|
|
|
|
{{ make_tab_item('comment', 'fa fa-comments', url('comment_feed'), _('Comments')) }}
|
|
|
|
{{ make_tab_item('ticket', 'fa fa-question-circle', url('ticket_feed'), _('Tickets')) }}
|
|
|
|
{{ make_tab_item('event', 'fa fa-calendar', '#', _('Events')) }}
|
2020-01-21 06:35:58 +00:00
|
|
|
</div>
|
2022-04-13 05:52:03 +00:00
|
|
|
{% endblock %}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2022-04-13 05:52:03 +00:00
|
|
|
{% block middle_content %}
|
|
|
|
{% set show_organization_private_icon=True %}
|
|
|
|
{% if page_type == 'blog' %}
|
|
|
|
{% for post in posts %}
|
|
|
|
{% include "blog/content.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% elif page_type == 'ticket' %}
|
|
|
|
{% if tickets %}
|
|
|
|
{% for ticket in tickets %}
|
|
|
|
{% include "ticket/feed.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<h3 style="text-align: center">{{_('You have no ticket')}}</h3>
|
|
|
|
{% endif %}
|
|
|
|
{% elif page_type == 'comment' %}
|
|
|
|
{% for comment in comments %}
|
|
|
|
{% include "comments/feed.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if page_obj.num_pages > 1 %}
|
|
|
|
<div style="margin-bottom:10px;margin-top:10px">{% include "list-pages.html" %}</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block right_sidebar %}
|
|
|
|
<div class="right-sidebar">
|
|
|
|
{% if request.in_contest_mode and request.participation.contest.use_clarifications %}
|
|
|
|
<div class="blog-sidebox sidebox">
|
|
|
|
<h3>{{ _('Clarifications') }}
|
|
|
|
<i class="fa fa-question-circle"></i>
|
|
|
|
{% if can_edit_contest %}
|
|
|
|
<a href="{{url('new_contest_clarification', request.participation.contest.key)}}"
|
|
|
|
class="fa fa-plus-circle"
|
|
|
|
id="add-clarification"
|
|
|
|
title="{{_('Add')}}">
|
|
|
|
</a>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endif %}
|
2022-04-13 05:52:03 +00:00
|
|
|
</h3>
|
|
|
|
<div class="sidebox-content">
|
|
|
|
{% if has_clarifications %}
|
|
|
|
<ul>
|
|
|
|
{% for clarification in clarifications %}
|
|
|
|
<li class="clarification">
|
|
|
|
<a href="{{ url('problem_detail', clarification.problem.code) }}"
|
|
|
|
class="problem">
|
|
|
|
{{ clarification.problem.name }}
|
|
|
|
</a>
|
|
|
|
<span class="time">{{ relative_time(clarification.date) }}</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p class="no-clarifications-message">
|
|
|
|
{{ _('No clarifications have been made at this time.') }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2020-01-21 06:35:58 +00:00
|
|
|
</div>
|
2022-04-13 05:52:03 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-05-28 04:28:22 +00:00
|
|
|
{% include 'contests-countdown.html' %}
|
|
|
|
{% include 'top-users.html' %}
|
2020-01-21 06:35:58 +00:00
|
|
|
</div>
|
2022-04-13 05:52:03 +00:00
|
|
|
{% endblock %}
|