{% load static shared pagination %}
{% if bookmark_list.is_empty %}
{% include 'bookmarks/empty_bookmarks.html' %}
{% else %}
{% for bookmark_item in bookmark_list.items %}
{% if not bookmark_list.is_preview %}
{% endif %}
{% if bookmark_item.favicon_file and bookmark_list.show_favicons %}
{% endif %}
{{ bookmark_item.title }}
{% endif %}
{% if bookmark_list.description_display == 'inline' %}
{% if bookmark_item.tags %}
{% for tag in bookmark_item.tags %}{{ tag.name }}{% endfor %}
{% endif %}
{% if bookmark_item.tags and bookmark_item.description %}|{% endif %}
{% if bookmark_item.description %}{{ bookmark_item.description }}{% endif %}
{% else %}
{% if bookmark_item.description %}
{{ bookmark_item.description }}
{% endif %}
{% if bookmark_item.tags %}
{% for tag in bookmark_item.tags %}{{ tag.name }}{% endfor %}
{% endif %}
{% endif %}
{% if bookmark_item.notes %}
{% markdown bookmark_item.notes %}
{% endif %}
{% if bookmark_item.display_date %}
{% if bookmark_item.snapshot_url %}
{{ bookmark_item.display_date }}
{% else %}
{{ bookmark_item.display_date }}
{% endif %}
{% if not bookmark_list.is_preview %}|{% endif %}
{% endif %}
{% if not bookmark_list.is_preview %}
{# View link is visible for both owned and shared bookmarks #}
{% if bookmark_list.show_view_action %}
View
{% endif %}
{% if bookmark_item.is_editable %}
{# Bookmark owner actions #}
{% if bookmark_list.show_edit_action %}
Edit
{% endif %}
{% if bookmark_list.show_archive_action %}
{% if bookmark_item.is_archived %}
{% else %}
{% endif %}
{% endif %}
{% if bookmark_list.show_remove_action %}
{% endif %}
{% else %}
{# Shared bookmark actions #}
Shared by
{{ bookmark_item.owner.username }}
{% endif %}
{% if bookmark_item.has_extra_actions %}
|
{% if bookmark_item.show_mark_as_read %}
{% endif %}
{% if bookmark_item.show_unshare %}
{% endif %}
{% if bookmark_item.show_notes_button %}
{% endif %}
{% endif %}
{% endif %}
{% if bookmark_list.show_preview_images %}
{% if bookmark_item.preview_image_file %}
{% else %}