{% extends "cosinnus/base.html" %} {% load i18n cosinnus_tags %} {% load static from staticfiles %} {% block page_title %}{{ group.name }} {{ block.super }}{% endblock page_title %} {% block extrahead %} {% endblock extrahead %} {% block main_page_header %}

{% trans "This page is a preview of many good things to come! It is heavily under development and many features are incomplete or may not work properly yet!" %}

{% if group %} {% cosinnus_menu "cosinnus/appsmenu.html" %} {% endif %}
{% include 'cosinnus/messages.html' %} {% endblock main_page_header %} {% block main_page %}
{% include 'cosinnus/group/group_avatar_image.html' with extra_classes="w100" %}
{% if user|has_write_access:group %} {% elif user.pk in group.pendings %} {% elif user.is_authenticated %} {% endif %} {{ group.name }}
{% if user.pk in group.pendings %} {% captureas label %}{% blocktrans with title=group.name %}Do you really want to withdraw your join request to „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Withdraw Join Request" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:group-user-withdraw' group=group %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id="join_withdraw_modal" label=label title=title form_action=action %} {% elif user.is_authenticated %} {% captureas label %}{% blocktrans with title=group.name %}Do you wish to request to join „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Join" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:group-user-join' group=group %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id="join_withdraw_modal" label=label title=title form_action=action %} {% endif %}
{% for widget in widgets %} {% cosinnus_render_widget widget %} {% endfor %} {% if edit_mode and group and user|has_write_access:group %}
{% endif %}
{% with micropages=group.micropages.all %}
  • {% trans "Informations" %}
{% for micropage in micropages %}
  • {{ micropage.title }}
{% endfor %}
{% for micropage in micropages %}
{{ micropage.title }} {% if micropage.text and micropage.text|length > 0 %} {{ micropage.text|textfield }} {% else %} ({% trans "No informations set" %}) {% endif %}
{% empty %}
{% trans "Description" %} {% if group.description %}
{{ group.description|textfield }}
{% else %}

({% trans "No informations set" %})

{% endif %}
{% endfor %}
{% endwith %} {% for item_inline in item_inlines %}
{# This used to be {{ item_inline.content|safe }}, but the |safe was removed, because the content is NOT safe! #} {# If this isn't rendered correctly, you now know why! #} {{ item_inline.content }}
{% endfor %} {% endblock main_page %} {% block extrafooter %} {{ block.super }} {% endblock %}