NDOJ/templates/blog/list.html

107 lines
3.3 KiB
HTML
Raw Normal View History

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>
@media (max-width: 799px) {
.title {
clear: both;
}
}
.time {
margin-left: 0;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
.no-clarifications-message {
font-style: italic;
text-align: center;
}
</style>
2020-01-21 06:35:58 +00:00
{% endblock %}
2022-04-13 05:52:03 +00:00
{% block three_col_js %}
2023-01-27 23:11:10 +00:00
{% include "actionbar/media-js.html" %}
{% 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' %}
{% include "blog/content.html" %}
2023-01-27 23:11:10 +00:00
{% elif page_type == 'ticket' %}
{% if tickets %}
{% 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' %}
{% 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 %}
{% include 'contests-countdown.html' %}
{% include 'recent-organization.html' %}
{% include 'top-users.html' %}
</div>
2022-04-13 05:52:03 +00:00
{% endblock %}