sprint/templates/main.html
Egor Matveev ef340572b6 if
2022-02-01 00:16:50 +03:00

31 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base_main.html' %}
{% block title %}Главная{% endblock %}
{% block main %}
<h2>Мои группы</h2>
<hr><hr>
<h2>Топ задач сегодня</h2>
{% for task in top_tasks_today %}
<a href="/task?task_id={{ task.id }}">{{ task.name }} ({{ task.count }})</a>&emsp;<span class="badge badge-{{ task.solution.badge_style }}">{{ task.solution.number_result }}</span><br>
{% endfor %}
<hr><hr>
{% if undone_tasks %}
<h2>У тебя были попытки, попробуй решить задачи еще раз</h2>
{% for task in undone_tasks %}
<a href="/task?task_id={{ task.id }}">{{ task.name }}</a>&emsp;<span class="badge badge-{{ task.solution.badge_style }}">{{ task.solution.number_result }}</span><br>
{% endfor %}
<hr><hr>
{% endif %}
{% if new_tasks %}
<h2>Новые задачи</h2>
{% for task in new_tasks %}
<a href="/task?task_id={{ task.id }}">{{ task.name }}</a><br>
{% endfor %}
<hr><hr>
{% endif %}
<h2>Топ пользователей</h2>
{% for u in top_users %}
<a href="/account?username={{ u.user.username }}">{{ u.place }}. <img src="{{ u.profile_pic_url }}" width="50px" height="50px" style="border-radius: 50%; margin-right: 10px;">{{ u.user.username }} ({{ u.rating }})</a><br><br>
{% endfor %}
{% endblock %}