{% comment %} The sidebar used on Artist pages. Expects: artist -- An Artist object. perms -- The Django permissions object. {% endcomment %} {% load ditto_core %}

{% with artist.get_scrobble_count as scrobble_count %} {{ artist.name }} has been scrobbled {{ scrobble_count }} time{{ scrobble_count|pluralize }} {% endwith %}

{% with artist.get_most_recent_scrobble as scrobble %} {% if scrobble %} {{ scrobble.track.name }} is the most recently scrobbled {{ artist.name }} track, by {{ scrobble.account.realname }} at {% display_time scrobble.post_time link_to_day=True %} {% endif %} {% endwith %}