{% load base_tags %} {% load perm_tags %} {% has_perm user photos.view_photoset as can_view %} {% has_perm user photos.add_photoset as can_add %} {% has_perm user photos.change_photoset as can_change %} {% has_perm user photos.delete_photoset as can_delete %} {% if can_change %} {% trans "Edit Set" %} {% endif %} {% if can_delete %} {% trans "Delete Set" %} {% endif %} {% if can_change %} {% trans "Add Photos" %} {% trans "Edit Photos" %} {% endif %} {% comment %} {% if user.profile.is_superuser %} {% trans "Download Zip" %} {% endif %} {% endcomment %}