{% comment %} A single Tweet as the contents of a Bootstrap media object. Expects: * tweet, a Tweet object. * view, one of 'list' (a generic list), 'detail' (tweet's own page) or 'day'. * perms - The Django perms object. {% endcomment %} {% if tweet %}
{{ tweet.user.name }} {{ tweet.user }} • {% load ditto_core %} {% if view == 'day' %} {% display_time tweet.post_time False %} {% else %} {% display_time tweet.post_time True %} {% endif %} {% if tweet.is_reply %} • In reply to… {% endif %} {% if view != 'detail' %} • # {% endif %} {% if view == 'detail' %} {% if tweet.account and tweet.account.is_active %} • At Twitter {% elif tweet.account == None %} {# A favorited tweet; always link to it. #} • At Twitter {% endif %} {% endif %} {% if perms.twitter.can_change_tweet %} • Edit {% endif %}
{% if tweet.get_retweeted_tweet %} {# This Tweet is just retweeting another; so display that. #} {% include 'twitter/includes/tweet.html' with tweet=tweet.get_retweeted_tweet view=view perms=perms only %} {% else %}{{ tweet.text_html|safe }}
{% if tweet.get_quoted_tweet %}{% if tweet.latitude %} {{ tweet.place }} {% else %} {{ tweet.place }} {% endif %}
{% endif %} {% if view == 'detail' %} {% endif %} {% endif %}