{%- if current_user.is_authenticated() and item.user_id == current_user.id%} {% set owner = 'true' %} {% endif -%}

{%- include "item/_vote.html" -%} {%- cache 60*60*24, 'item_title', item.__str__(), item.changed -%} {%- if item.url %} {{item.title|safe}} ({{item.url|domain}}) {%- else -%} {{item.title|safe}} {% endif -%} {%- endcache -%}

{{item.votes|length}} | From {% cache 60*60*24, 'user', item.user.name -%}{{item.user.name}}{% endcache %} {{item.timestamp|time_ago}} | {{item.get_children()|length}} comments {%- if owner and not edit %} | Edit {% endif -%}

{%- if item_page %}
{%- cache 60*60*5, 'item_text', item.__str__(), item.changed -%} {{item.text|safe|urlize}} {%- endcache -%}
{% endif -%}