Fix bookmark page
This commit is contained in:
parent
181127d632
commit
af8ab310ce
1 changed files with 8 additions and 0 deletions
|
@ -16,11 +16,13 @@
|
||||||
<table style="display: none" class="table toggled">
|
<table style="display: none" class="table toggled">
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for post in blogs %}
|
{% for post in blogs %}
|
||||||
|
{% if post.bookmark.page_object() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bookmark-name">
|
<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>
|
<a href="{{ url('blog_post', post.bookmark.page_object().id, post.bookmark.page_object().slug) }}">{{ post.bookmark.page_object().title}} </a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -34,11 +36,13 @@
|
||||||
<table style="display: none" class="table toggled">
|
<table style="display: none" class="table toggled">
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for problem in problems %}
|
{% for problem in problems %}
|
||||||
|
{% if problem.bookmark.page_object() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bookmark-name">
|
<td class="bookmark-name">
|
||||||
<a href="{{ url('problem_detail', problem.bookmark.page_object().code) }}">{{ problem.bookmark.page_object().name}} </a>
|
<a href="{{ url('problem_detail', problem.bookmark.page_object().code) }}">{{ problem.bookmark.page_object().name}} </a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -53,11 +57,13 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for contest in contests %}
|
{% for contest in contests %}
|
||||||
|
{% if contest.bookmark.page_object() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bookmark-name">
|
<td class="bookmark-name">
|
||||||
<a href="{{ url('contest_view', contest.bookmark.page_object().key) }}">{{ contest.bookmark.page_object().name}} </a>
|
<a href="{{ url('contest_view', contest.bookmark.page_object().key) }}">{{ contest.bookmark.page_object().name}} </a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -72,11 +78,13 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for solution in solutions %}
|
{% for solution in solutions %}
|
||||||
|
{% if solution.bookmark.page_object() %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="bookmark-name">
|
<td class="bookmark-name">
|
||||||
<a href="{{ url('problem_editorial', solution.bookmark.page_object().problem.code) }}">{{ solution.bookmark.page_object().problem.name}} </a>
|
<a href="{{ url('problem_editorial', solution.bookmark.page_object().problem.code) }}">{{ solution.bookmark.page_object().problem.name}} </a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue