{% set has_pagination = pagination is defined %} {% set query_suffix = '' %} {% if page_query is defined and page_query %} {% set query_suffix = page_query %} {% endif %}
{% if text_contents|length > 0 %}
{% for text_content in text_contents %}
{% if text_content.url_info %}
website screenshot
{% endif %} {% if text_content.file_info.mime_type == "image/png" or text_content.file_info.mime_type == "image/jpeg" %}
{{text_content.file_info.file_name}}
{% endif %}

{% if text_content.url_info %} {{text_content.url_info.title}} {% elif text_content.file_info %} {{text_content.file_info.file_name}} {% else %} {{text_content.text}} {% endif %}

{{ text_content.created_at | datetimeformat(format="short", tz=user.timezone) }}

{{ text_content.category }}
{% if text_content.url_info %} {% include "icons/link_icon.html" %} {% endif %}

{{ text_content.instructions }}

{% endfor %}
{% else %}
No content found.
{% endif %} {% if has_pagination and pagination.total_items > 0 %}
Showing {{ pagination.start_index }}-{{ pagination.end_index }} of {{ pagination.total_items }} items
{% set prev_enabled = pagination.previous_page is not none %} {% set next_enabled = pagination.next_page is not none %}
{% endif %}