{% load i18n learning %}
{# On the left: attribute badges that define resource properties #}
{# The resource access attribute #} {% blocktrans with access=resource.get_access_display %}“{{ access }}” access{% endblocktrans %} {# The resource reuse attribute #} {{ resource.get_reuse_display }} {# The resource licence attribute #} {{ resource.get_licence_display }} {# The resource duration attribute #} {{ resource.get_duration_display }}
{% if user == resource.author %} {% trans "I write this resource." %} {% elif contribution %} {% blocktrans with role=contribution.get_role_display %}I am “{{ role }}” on this resource.{% endblocktrans %} {% endif %}