{% load base_filters %} {% load base_tags %} {% load studygroup_tags %} {% load perm_tags %} {% load tagging_tags %} {% has_perm user studygroups.change_studygroup study_group as can_edit %} {% has_perm user studygroups.delete_studygroup study_group as can_delete %} {% tags_for_object study_group as tags %}
{% with study_group.category_set as study_group_cat %} {% if study_group_cat %}
{% trans "Category:" %} {{ study_group_cat.category }} {% if study_group_cat.sub_category %} | {% trans "Sub Category:" %} {{ study_group_cat.sub_category }} {% endif %}
{% endif %} {% endwith %} {% if tags %}
{% trans 'Tags' %}: {% for tag in tags %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if user.is_authenticated %} {% endif %}
{% if can_edit %}
{% endif %}