{# required vars: link: the link to display mode: edit edit-template view etc... #}
{% set randomId = random() %}
{% if link.link_state == 2 %}{% endif %} {% if link.category_title %} {{ link.category_title }} {% endif %} {% if link.status_title %} {{ link.status_title }} {% endif %} {% if link.custom_id %} {{ link.custom_id }} {% endif %} {{ link.title }} {# toggle body #} {% if mode == 'edit' %} {% endif %}
{# container to hold the body of the entity if it is toggled with the +/- icon #} {# a random id is used because with the favorites the item can appear two times on the page so the old blah_123 doesn't work well #}