{% comment %} The sidebar used on Track Detail pages. Expects: track -- A Track object. perms -- The Django permissions object. {% endcomment %} {% load ditto_core %}
{% with track.get_scrobble_count as scrobble_count %} {{ track.name }} has been scrobbled {{ scrobble_count }} time{{ scrobble_count|pluralize }} {% endwith %}
{% with track.get_most_recent_scrobble as scrobble %} {% if scrobble %} {{ track.name }} was most recently scrobbled by {{ scrobble.account.realname }} at {% display_time scrobble.post_time link_to_day=True %} {% endif %} {% endwith %}