{% extends "user/user-base.html" %} {% block title_ruler %}{% endblock %} {% block title_row %} {% set tab = 'bookmark' %} {% include "user/user-tabs.html" %} {% endblock %} {% from "contest/macros.html" import contest_head, time_left, user_count, contest_format_user %} {% block user_content %}
{% if current_tab == 'problems' %} {% if bookmarks %} {% for problem in bookmarks %}

{{ problem.name }}

{% with authors=problem.get_authors() %} {% if authors %}
{{ link_users(authors) }}
{% endif %} {% endwith %}
*{{problem.points | int}}
{% cache 86400 'problem_html' problem.id LANGUAGE_CODE %} {{ problem.description|markdown(lazy_load=True)|reference|str|safe }} {% endcache %} {% if problem.pdf_description %} {% endif %}
{{_("...More")}}
{% endfor %} {% if page_obj and page_obj.num_pages > 1 %}
{% include "list-pages.html" %}
{% endif %} {% else %} {{ _('There is no saved problem.') }} {% endif %} {% endif %} {% if current_tab == 'contests' %} {% if bookmarks %} {% for contest in bookmarks %}
{{ _('Contests') }}
{{ contest_head(contest) }}
{{ _('Time') }}
{{ time_left(contest) }}
{{ contest_format_user(contest, request) }}
{% endfor %} {% if page_obj and page_obj.num_pages > 1 %}
{% include "list-pages.html" %}
{% endif %} {% else %} {{ _('There is no saved contest.') }} {% endif %} {% endif %} {% if current_tab == 'editorials' %} {% if bookmarks %} {% for solution in bookmarks %}
{% with authors=solution.get_authors() %} {%- if authors -%} {%- endif -%} {% endwith %} • {{ relative_time(solution.publish_on) }}

{{ solution.problem.name }}

{% cache 86400 'solution_content' solution.id %} {{ solution.content|markdown(lazy_load=True)|reference|str|safe }} {% endcache %}
{{_("...More")}}
{% endfor %} {% if page_obj and page_obj.num_pages > 1 %}
{% include "list-pages.html" %}
{% endif %} {% else %} {{ _('There is no saved editorial.') }} {% endif %} {% endif %} {% if current_tab == 'posts' %} {% if bookmarks %} {% for post in bookmarks %}
{% with authors=post.get_authors() %} {%- if authors -%} {%- endif -%} {% endwith %} • {{ relative_time(post.publish_on) }} {{ comment_count(post) }}

{{ post.title }}

{% cache 86400 'post_content' post.id %} {{ post.content|markdown(lazy_load=True)|reference|str|safe }} {% endcache %}
{{_("...More")}}
{% endfor %} {% if page_obj and page_obj.num_pages > 1 %}
{% include "list-pages.html" %}
{% endif %} {% else %} {{ _('There is no saved post.') }} {% endif %} {% endif %} {% endblock %}