{% 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.screen_name }}’s avatar

• {% 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 %}
{% include 'twitter/includes/tweet.html' with tweet=tweet.get_quoted_tweet view=view perms=perms only %}
{% endif %} {% if tweet.media_count > 0 %} {% include 'twitter/includes/media.html' with tweet=tweet view=view %} {% endif %} {% if tweet.place %}

{% if tweet.latitude %} {{ tweet.place }} {% else %} {{ tweet.place }} {% endif %}

{% endif %} {% if view == 'detail' %}

{{ tweet.retweet_count }} Retweet{{ tweet.retweet_count|pluralize }} • {{ tweet.favorite_count }} Like{{ tweet.favorite_count|pluralize }} • As of {% display_time tweet.fetch_time %}

{% endif %} {% endif %}
{% endif %}