NDOJ/templates/user/user-bookmarks.html

95 lines
3.4 KiB
HTML
Raw Normal View History

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