Fix bookmark page

This commit is contained in:
cuom1999 2022-11-21 00:34:39 -06:00
parent 181127d632
commit af8ab310ce

View file

@ -16,11 +16,13 @@
<table style="display: none" class="table toggled">
<tbody>
{% for post in blogs %}
{% if post.bookmark.page_object() %}
<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>
{% endif %}
{% endfor %}
</tbody>
</table>
@ -34,11 +36,13 @@
<table style="display: none" class="table toggled">
<tbody>
{% for problem in problems %}
{% if problem.bookmark.page_object() %}
<tr>
<td class="bookmark-name">
<a href="{{ url('problem_detail', problem.bookmark.page_object().code) }}">{{ problem.bookmark.page_object().name}} </a>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
@ -53,11 +57,13 @@
</thead>
<tbody>
{% for contest in contests %}
{% if contest.bookmark.page_object() %}
<tr>
<td class="bookmark-name">
<a href="{{ url('contest_view', contest.bookmark.page_object().key) }}">{{ contest.bookmark.page_object().name}} </a>
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
@ -72,11 +78,13 @@
</thead>
<tbody>
{% for solution in solutions %}
{% if solution.bookmark.page_object() %}
<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>
{% endif %}
{% endfor %}
</tbody>
</table>