{% extends "default.html" %} {%- import 'util/macros.html' as macros with context -%} {% block pagetitle %}!{{group}}{% endblock %} {% block content %}
{% if v.id != group.owner_id %} {% endif %} {% if v.id == group.owner_id %} {% include "modals/emoji.html" %}
!{{group}} Description
{{macros.emoji_btn('edit-group-description')}}
{% elif group.description_html %}
!{{group}} Description

{{group.description_html | safe}}

{% endif %}
{% macro process_memberships(memberships, name) %}
!{{group}} {{name}}
{% if name == 'members' %} {% else %} {% endif %} {% if v.is_member_of_group(group) or v.mods_group(group) %} {% endif %} {% for membership in memberships %} {% set is_owner = membership.user_id == group.owner_id %} {% if name == 'members' %} {% else %} {% endif %} {% endfor %}
# NameApproved onApplied on
{{loop.index}} {% with user=membership.user %} {% include "user_in_table.html" %} {% endwith %} {% if is_owner %} Owner {% elif membership.is_mod %} Mod {% endif %} {% if v.mods_group(group) %} {% if v.id == group.owner_id and v.id != membership.user_id %}
{% endif %} {% if v.id == membership.user_id or v.id == group.owner_id or not membership.user.mods_group(group) %}
{% endif %}
{% endif %} {% if v.is_member_of_group(group) and is_owner and v.id != group.owner_id %} {% endif %}
{% endmacro %} {% if v.mods_group(group) %} {{process_memberships(applications, 'applications')}} {{process_memberships(members, 'members')}} {% else %} {{process_memberships(members, 'members')}} {{process_memberships(applications, 'applications')}} {% endif %}
{% endblock %}