2022-11-17 21:21:32 +00:00
|
|
|
{% extends "user/user-base.html" %}
|
|
|
|
|
|
|
|
{% block title_ruler %}{% endblock %}
|
|
|
|
|
|
|
|
{% block title_row %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% set tab = 'bookmark' %}
|
|
|
|
{% include "user/user-tabs.html" %}
|
2022-11-17 21:21:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block user_content %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if blogs %}
|
2022-11-17 21:21:32 +00:00
|
|
|
<div class="bookmark-group">
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3 class="unselectable toggle closed">
|
|
|
|
<span class="fa fa-chevron-right fa-fw"></span>{{ _('Posts') }} ({{ blogs|length }})
|
|
|
|
</h3>
|
|
|
|
<table style="display: none" class="table toggled">
|
|
|
|
<tbody>
|
|
|
|
{% for post in blogs %}
|
2023-08-03 09:04:39 +00:00
|
|
|
{% set object = post.bookmark.linked_object %}
|
|
|
|
{% if object %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<tr>
|
|
|
|
<td class="bookmark-name">
|
2023-08-03 09:04:39 +00:00
|
|
|
<a href="{{ url('blog_post', object.id, object.slug) }}">{{ object.title}} </a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-11-17 21:21:32 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if problems %}
|
2022-11-17 21:21:32 +00:00
|
|
|
<div class="bookmark-group">
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3 class="unselectable toggle closed">
|
|
|
|
<span class="fa fa-chevron-right fa-fw"></span>{{ _('Problems') }} ({{ problems|length }})
|
|
|
|
</h3>
|
|
|
|
<table style="display: none" class="table toggled">
|
|
|
|
<tbody>
|
|
|
|
{% for problem in problems %}
|
2023-08-03 09:04:39 +00:00
|
|
|
{% set object = problem.bookmark.linked_object %}
|
|
|
|
{% if object %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<tr>
|
|
|
|
<td class="bookmark-name">
|
2023-08-03 09:04:39 +00:00
|
|
|
<a href="{{ url('problem_detail', object.code) }}">{{ object.name}} </a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-11-17 21:21:32 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if contests %}
|
2022-11-17 22:11:47 +00:00
|
|
|
<div class="bookmark-group">
|
2023-01-27 23:11:10 +00:00
|
|
|
<h3 class="unselectable toggle closed">
|
|
|
|
<span class="fa fa-chevron-right fa-fw"></span>{{ _('Contests') }} ({{ contests|length }})
|
|
|
|
</h3>
|
|
|
|
<table style="display: none" class="table toggled">
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for contest in contests %}
|
2023-08-03 09:04:39 +00:00
|
|
|
{% set object = contest.bookmark.linked_object %}
|
|
|
|
{% if object %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<tr>
|
|
|
|
<td class="bookmark-name">
|
2023-08-03 09:04:39 +00:00
|
|
|
<a href="{{ url('contest_view', object.key) }}">{{ object.name}} </a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-11-17 22:11:47 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if solutions %}
|
|
|
|
<div class="bookmark-group">
|
|
|
|
<h3 class="unselectable toggle closed">
|
|
|
|
<span class="fa fa-chevron-right fa-fw"></span>{{ _('Editorials') }} ({{ solutions|length }})
|
|
|
|
</h3>
|
|
|
|
<table style="display: none" class="table toggled">
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for solution in solutions %}
|
2023-08-03 09:04:39 +00:00
|
|
|
{% set object = solution.bookmark.linked_object %}
|
|
|
|
{% if object %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<tr>
|
|
|
|
<td class="bookmark-name">
|
2023-08-03 09:04:39 +00:00
|
|
|
<a href="{{ url('problem_editorial', object.problem.code) }}">{{ object.problem.name}} </a>
|
2023-01-27 23:11:10 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-11-17 21:21:32 +00:00
|
|
|
|
|
|
|
{% endblock %}
|