mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-14 22:19:32 +02:00
Add empty bookmarks message
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{% load shared %}
|
||||
|
||||
<ul class="bookmark-list">
|
||||
{% for bookmark in bookmarks %}
|
||||
<li>
|
||||
|
8
bookmarks/templates/bookmarks/empty_bookmarks.html
Normal file
8
bookmarks/templates/bookmarks/empty_bookmarks.html
Normal 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>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user