2023-01-27 23:11:10 +00:00
|
|
|
{% extends "problem/list-base.html" %}
|
|
|
|
{% block left_sidebar %}
|
2023-02-07 23:22:37 +00:00
|
|
|
{% include "problem/left-sidebar.html" %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endblock %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% block problem_list_js %}
|
|
|
|
{% include "feed/feed_js.html" %}
|
|
|
|
{% endblock %}
|
2023-01-27 23:11:10 +00:00
|
|
|
|
|
|
|
{% block middle_content %}
|
2023-02-07 23:22:37 +00:00
|
|
|
<div class="problem-feed-option">
|
|
|
|
<a href="{{url('problem_feed')}}"
|
|
|
|
class="button small {{'btn-midnightblue' if feed_type=='for_you' else 'btn-gray'}}">
|
|
|
|
{{_('FOR YOU')}}
|
|
|
|
</a>
|
|
|
|
<a href="{{url('problem_feed_new')}}" class="button small {{'btn-midnightblue' if feed_type=='new' else 'btn-gray'}}">
|
|
|
|
{{_('NEW')}}
|
2023-01-27 23:11:10 +00:00
|
|
|
</a>
|
2023-02-07 23:22:37 +00:00
|
|
|
{% if request.user.has_perm('judge.suggest_problem_changes') %}
|
|
|
|
<a href="{{url('problem_feed_volunteer')}}"
|
|
|
|
class="button small {{'btn-midnightblue' if feed_type=='volunteer' else 'btn-gray'}}">
|
|
|
|
{{_('VOLUNTEER')}}
|
|
|
|
</a>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
2023-02-05 13:41:18 +00:00
|
|
|
</div>
|
2023-02-07 23:22:37 +00:00
|
|
|
{% if request.user.has_perm('judge.suggest_problem_changes') and feed_type == 'volunteer' %}
|
|
|
|
<ul style="margin-bottom: 1em; margin-left: auto">
|
|
|
|
<li><a href="{{url('admin:judge_volunteerproblemvote_changelist')}}">{{_('View your votes')}}</a></li>
|
|
|
|
</ul>
|
2023-02-05 13:41:18 +00:00
|
|
|
{% endif %}
|
2023-02-20 23:15:13 +00:00
|
|
|
{% include "problem/feed/problems.html" %}
|
2022-05-28 04:28:22 +00:00
|
|
|
{% endblock %}
|