Add empty bookmarks message

This commit is contained in:
Sascha Ißbrücker
2019-07-06 17:31:43 +02:00
parent 1b7f57999d
commit 7b27862795
5 changed files with 14 additions and 18 deletions

View File

@@ -1,3 +1,5 @@
{% load shared %}
<ul class="bookmark-list">
{% for bookmark in bookmarks %}
<li>

View File

@@ -0,0 +1,8 @@
<div class="empty">
<p class="empty-title h5">You have no bookmarks yet</p>
<p class="empty-subtitle">
You can get started by <a href="{% url 'bookmarks:new' %}">adding</a> bookmarks, <a
href="{% url 'bookmarks:settings.index' %}">importing</a> your existing bookmarks or <a
href="{% url 'bookmarks:bookmarklet' %}">configuring</a> the bookmarklet.
</p>
</div>

View File

@@ -20,7 +20,9 @@
</div>
</div>
{% if bookmarks.paginator.num_pages > 0 %}
{% if empty %}
{% include 'bookmarks/empty_bookmarks.html' %}
{% else %}
{% bookmark_list bookmarks %}
{% endif %}
</section>