{{ note.uploaded_at|date:"l M d o"|capfirst }} {{ note.thanks }} {{ note.name }} {% if note.tags.count > 0 %} Tags: {% for tag in note.tags.all %} {{ tag.name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% if note_preview %} {{ note_preview|safe }} {% elif note.text|length <= 500 %} {{ note.text }} {% else %} {{ note.text|slice:":500" }} … {% endif %}