{% load base_filters %} {% load base_tags %} {% load perm_tags %} {% load tagging_tags %} {% load i18n %} {% has_perm user pages.change_page page as can_edit %} {% has_perm user pages.delete_page page as can_delete %} {% tags_for_object page as tags %} {% tags_hash_tags page as hash_tags %} {% tags_strip_hash page as nonhash_tags %}
{% with page.category_set as page_cat %} {% if page_cat %}
{% trans "Category:" %} {{ page_cat.category }} {% if page_cat.sub_category %} | {% trans "Sub Category:" %} {{ page_cat.sub_category }} {% endif %}
{% endif %} {% endwith %} {% if nonhash_tags or hash_tags %}
{% if nonhash_tags or can_edit %}Tags: {% endif %} {% for tag in nonhash_tags %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if hash_tags and can_edit %} {% for tag in hash_tags %} {% if forloop.first and nonhash_tags %}| {% endif %}{{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %}
{% endif %} {% if user.is_authenticated %} {% if user.profile.is_superuser or user.id == page.creator_id or user.id == page.owner_id %} {% meta_creator_owner page %} {% endif %} {% endif %}
{% if page.status %} {% trans "Print" %} {% endif %}
{% if request.user.is_authenticated %} {% has_perm request.user pages.change_page page as can_edit_page %} {% has_perm request.user pages.delete_page page as can_delete_page %} {% endif %} {% if can_edit_page %}
{% endif %}