NDOJ/templates/problem/feed.html

31 lines
1.2 KiB
HTML
Raw Normal View History

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 %}
{% block problem_list_js %}
{% include "feed/feed_js.html" %}
{% endblock %}
2023-01-27 23:11:10 +00:00
{% block middle_content %}
2023-03-03 00:43:15 +00:00
<div class="tabs tabs-no-flex" style="width: 90%;margin-left: auto;margin-right: auto;">
<ul>
<li class="{{'active' if feed_type=='for_you'}}">
<a href="{{url('problem_feed')}}">{{_('FOR YOU')}}</a>
</li>
<li class="{{'active' if feed_type=='new'}}">
<a href="{{url('problem_feed_new')}}">{{_('NEW')}}</a>
</li>
{% if request.user.has_perm('judge.suggest_problem_changes') %}
<li class="{{'active' if feed_type=='volunteer'}}">
<a href="{{url('problem_feed_volunteer')}}">{{_('VOLUNTEER')}}</a>
</li>
{% endif %}
</ul>
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 %}
{% include "problem/feed/problems.html" %}
2022-05-28 04:28:22 +00:00
{% endblock %}