2022-04-13 05:52:03 +00:00
|
|
|
{% extends "three-column-content.html" %}
|
|
|
|
{% block three_col_media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% include "blog/media-css.html" %}
|
|
|
|
<style>
|
|
|
|
.no-clarifications-message {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-05-22 04:09:22 +00:00
|
|
|
|
|
|
|
.org-logo {
|
|
|
|
height: 2em;
|
|
|
|
width: 2em;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2024-06-05 03:00:23 +00:00
|
|
|
|
|
|
|
.organization-row:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2023-01-27 23:11:10 +00:00
|
|
|
</style>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2024-06-24 19:56:00 +00:00
|
|
|
{% block js_media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% include "actionbar/media-js.html" %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% include "feed/feed_js.html" %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('.time-remaining').each(function () {
|
|
|
|
count_down($(this));
|
|
|
|
});
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2023-01-27 23:11:10 +00:00
|
|
|
$('.right-sidebar').hide();
|
|
|
|
$('#event-tab').click(function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
$('.left-sidebar-item').removeClass('active');
|
|
|
|
$('#event-tab').addClass('active');
|
|
|
|
$('.middle-content').hide();
|
|
|
|
$('.right-sidebar').show();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-04-13 05:52:03 +00:00
|
|
|
{% block left_sidebar %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="left-sidebar">
|
|
|
|
{{ make_tab_item('blog', 'fa fa-rss', url('home'), _('News')) }}
|
2023-08-24 16:10:39 +00:00
|
|
|
{{ make_tab_item('comment', 'fa fa-comments', url('comment_feed'), _('Comment')) }}
|
|
|
|
{{ make_tab_item('ticket', 'fa fa-question-circle', url('ticket_feed'), _('Ticket')) }}
|
2023-01-27 23:11:10 +00:00
|
|
|
{{ make_tab_item('event', 'fa fa-calendar', '#', _('Events')) }}
|
|
|
|
</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 %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% set show_organization_private_icon=True %}
|
|
|
|
{% if page_type == 'blog' %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% include "blog/content.html" %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% elif page_type == 'ticket' %}
|
|
|
|
{% if tickets %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% include "ticket/feed.html" %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% else %}
|
|
|
|
<h3 style="text-align: center">{{_('You have no ticket')}}</h3>
|
2022-04-13 05:52:03 +00:00
|
|
|
{% endif %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% elif page_type == 'comment' %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% include "comments/feed.html" %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
2022-04-13 05:52:03 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block right_sidebar %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="right-sidebar">
|
|
|
|
{% if request.in_contest_mode and request.participation.contest.use_clarifications %}
|
|
|
|
<div class="blog-sidebox sidebox">
|
2023-07-06 17:54:52 +00:00
|
|
|
<h3>
|
2023-01-27 23:11:10 +00:00
|
|
|
<i class="fa fa-question-circle"></i>
|
2023-07-06 17:54:52 +00:00
|
|
|
{{ _('Clarifications') }}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if can_edit_contest %}
|
|
|
|
<a href="{{url('new_contest_clarification', request.participation.contest.key)}}"
|
|
|
|
class="fa fa-plus-circle"
|
|
|
|
id="add-clarification"
|
|
|
|
title="{{_('Add')}}"
|
2023-07-06 17:54:52 +00:00
|
|
|
style="color: lightcyan; margin-left: auto;">
|
2023-01-27 23:11:10 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</h3>
|
|
|
|
<div class="sidebox-content">
|
|
|
|
{% if has_clarifications %}
|
|
|
|
<ul>
|
|
|
|
{% for clarification in clarifications %}
|
|
|
|
<li class="clarification">
|
|
|
|
<a href="{{ url('problem_detail', clarification.problem.problem.code) }}"
|
|
|
|
class="problem">
|
|
|
|
{{ clarification.problem.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 %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2024-05-22 04:09:22 +00:00
|
|
|
{% include 'profile-table.html' %}
|
2024-05-25 18:27:20 +00:00
|
|
|
{% include 'contests-countdown.html' %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% include 'top-users.html' %}
|
2024-05-22 04:09:22 +00:00
|
|
|
{% include 'recent-organization.html' %}
|
2023-01-27 23:11:10 +00:00
|
|
|
</div>
|
2022-04-13 05:52:03 +00:00
|
|
|
{% endblock %}
|