NDOJ/templates/problem/related_problems.html

20 lines
821 B
HTML
Raw Normal View History

2023-10-11 01:09:05 +00:00
{% if request.user.is_authenticated and related_problems %}
2023-01-28 01:15:37 +00:00
<div class="content-description">
<h4>{{_('Recommended problems')}}:</h4>
<ul style="list-style-type: none; margin: 0.3em;">
{% for problem in related_problems %}
2023-11-02 09:12:56 +00:00
<tr id="problem-{{ problem.code }}">
2023-01-28 01:15:37 +00:00
<li>
{% if problem.id in completed_problem_ids %}
<i class="solved-problem-color fa fa-check-circle"></i>
{% elif problem.id in attempted_problems %}
<i class="attempted-problem-color fa fa-minus-circle"></i>
{% else %}
<i class="unsolved-problem-color fa fa-minus-circle"></i>
{% endif %}
<a href="{{url('problem_detail', problem.code)}}">{{ problem.name }}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}