NDOJ/templates/problem/feed.html

31 lines
1.1 KiB
HTML
Raw Permalink 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 %}
<div class="tabs tabs-no-flex">
2023-03-03 00:43:15 +00:00
<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">
2024-06-24 19:56:00 +00:00
<li><a href="{{url('admin:judge_volunteerproblemvote_changelist')}}" target="_blank">{{_('View your votes')}}</a></li>
2023-02-07 23:22:37 +00:00
</ul>
2023-02-05 13:41:18 +00:00
{% endif %}
2024-04-13 22:02:54 +00:00
{% include "problem/feed/items.html" %}
2022-05-28 04:28:22 +00:00
{% endblock %}