mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-03-07 02:13:12 +08:00
* Implement archive function (#46) * Implement archive view (#46) * Filter tags for archived/unarchived (#46) * Implement archived bookmarks endpoint (#46) * Implement archive mode for search component (#46) * Move bookmarklet to settings (#46) * Update modified timestamp on archive/unarchive (#46) * Fix bookmarklet (#46)
45 lines
1.9 KiB
HTML
45 lines
1.9 KiB
HTML
{% load shared %}
|
|
{% load pagination %}
|
|
|
|
<ul class="bookmark-list">
|
|
{% for bookmark in bookmarks %}
|
|
<li>
|
|
<div class="title truncate">
|
|
<a href="{{ bookmark.url }}" target="_blank" rel="noopener">{{ bookmark.resolved_title }}</a>
|
|
</div>
|
|
<div class="description truncate">
|
|
{% if bookmark.tag_names %}
|
|
<span>
|
|
{% for tag_name in bookmark.tag_names %}
|
|
<a href="?{% append_query_param q=tag_name|hash_tag %}">{{ tag_name|hash_tag }}</a>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
{% if bookmark.tag_names and bookmark.resolved_description %} | {% endif %}
|
|
|
|
{% if bookmark.resolved_description %}
|
|
<span>{{ bookmark.resolved_description }}</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="actions">
|
|
<a href="{% url 'bookmarks:edit' bookmark.id %}?return_url={{ return_url }}"
|
|
class="btn btn-link btn-sm">Edit</a>
|
|
{% if bookmark.is_archived %}
|
|
<a href="{% url 'bookmarks:unarchive' bookmark.id %}?return_url={{ return_url }}"
|
|
class="btn btn-link btn-sm">Unarchive</a>
|
|
{% else %}
|
|
<a href="{% url 'bookmarks:archive' bookmark.id %}?return_url={{ return_url }}"
|
|
class="btn btn-link btn-sm">Archive</a>
|
|
{% endif %}
|
|
<a href="{% url 'bookmarks:remove' bookmark.id %}?return_url={{ return_url }}"
|
|
class="btn btn-link btn-sm"
|
|
onclick="return confirm('Do you really want to delete this bookmark?')">Remove</a>
|
|
</div>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<div class="bookmark-pagination">
|
|
{% pagination bookmarks %}
|
|
</div>
|