{% import "plainui/components/markdown.html" as markdownMacro %} {% import "plainui/components/tagbox.html" as tagMacros %} {% macro tile(item) -%}
{% if item.title %}

{% if item.detail_link and item.text|length > 400 %} {{ item.title }} {% else %} {{ item.title }} {% endif %}

{% endif %}
{% if item.is_private %} {{ tagMacros.secondary(_("private"), icon="lock-fill") }} {% endif %} {% if item.owner_name and item.owner_link %} {{ tagMacros.user(item.owner_name, link=item.owner_link) }} {% endif %}
{% if item.text %} {% if item.full_text %} {{ markdownMacro.markdown_plain(item.text | safe, "card-body border-0 bg-transparent") }} {% else %} {{ markdownMacro.markdown_plain(item.text | safe | truncate( 400, false, '...', 10), "hub-tile-board__body card-body border-0 bg-transparent") }} {% endif %} {% endif %}
{%- endmacro %} {% macro tile_buttons(item) -%} {%- endmacro %}