{% extends "cosinnus/base.html" %} {% load i18n cosinnus_tags thumbnail %} {% load static from staticfiles %} {% block page_title %}{{ group.name }} {{ block.super }}{% endblock page_title %} {% block extrahead %} {% endblock extrahead %} {% block og_meta_attributes %} {% include 'cosinnus/group/group_og_meta_attributes.html' with group=group %} {% endblock og_meta_attributes %} {% block body_attributes %}{% if not user.is_authenticated %}class="body-no-nav"{% endif %}{% endblock body_attributes %} {% block cosinnus_navbar %} {% if user.is_authenticated %} {{ block.super }} {% endif %} {% endblock cosinnus_navbar %} {% block main_page_header %} {% if user.is_authenticated %} {% comment %} Combobox dropdown and breadcrumb {% endcomment %}
{% if group %} {% cosinnus_menu "cosinnus/appsmenu.html" %} {% endif %}
{% endif %} {% include 'cosinnus/messages.html' %} {% endblock main_page_header %} {% block main_page %} {% if user.is_authenticated and user.pk in group.admins %}

{% trans "Not happy with how your Microsite looks?" %} {% trans "Change it here..." %}

{% endif %} {% block microsite_header %}
{% if not user.is_authenticated %} {% if request.GET.invited == "1" %}

{% trans "You have been invited to collaborate!" %}

{# Jetzt anmelden und mitgestalten #} {% if SETTINGS.COSINNUS_IS_SSO_PORTAL %} {% include 'cosinnus/registration/sso_login_button.html' with next=group.get_absolute_url|addstr:'join/?direct=1' %} {% else %} {# Hacky green color #} {% endif %} {% else %}

{% trans "Join now and collaborate!" %}

{# Jetzt anmelden und mitgestalten #} {% if SETTINGS.COSINNUS_IS_SSO_PORTAL %} {% include 'cosinnus/registration/sso_login_button.html' with next=group.get_absolute_url %} {% else %} {# Hacky green color #} {% endif %} {% endif %} {% elif user.pk in group.members %}

{% trans "You are a member!" %}

{% elif user.pk in group.pendings %}

{% trans "Membership request pending..." %}

{% 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 title_icon="fa-group" %} {% elif user.pk in group.invited_pendings %}

{% trans "You are invited!" %}

{# Hacky green color #} {% captureas modal_decline_invitation_id %}userModal_decline_invitation_{{member.pk}}{% endcaptureas %} {# hidden form, triggered by accept-button JS #} {% captureas label %}{% blocktrans %}Do you really want to decline the invitation?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Decline Invitation" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:group-user-decline' group=group %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=modal_decline_invitation_id label=label title=title form_action=action %} {% else %} {# User authenticated but not a members #}

{% trans "Collaborate!" %}

{# Hacky green color #} {% 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 title_icon="fa-group" %} {% endif %} {% if group.public and user.is_authenticated and not user.pk in group.members and not user.pk in group.invited_pendings %} {% endif %}
{% include "cosinnus/group/group_microsite_header_image.html" %}
{% include "cosinnus/group/group_avatar_image.html" with group=group extra_classes="image" %}
{% block microsite_main_content %}

{{ group.name }}

{% if group.public %} {% if group.type == 0 %}{% trans "Public Project" %}{% else %}{% trans "Public Group" %}{% endif %} {% else %} {% if group.type == 0 %}{% trans "Project" %}{% else %}{% trans "Group" %}{% endif %} {% endif %}

{% with parent=group.get_parent_typed %} {% if parent %}

{% trans "Group" %}: {{ parent.name }} {% comment %} Other Projects (siblings) link out for now. {% with siblings=group.get_siblings %} {% if siblings %} | {% trans "Other Projects" %}: {% for sibling in siblings %} {{ sibling.name }} {% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {% endwith %} {% endcomment %}

{% else %} {% with children=group.get_children %} {% if children %}

{% trans "Projects" %}: {% for child in children %} {{ child.name }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %} {% endwith %} {% endif %} {% endwith %} {% endblock microsite_main_content %}
{% endblock microsite_header %} {% block microsite_subheader %}
{% trans "Members" %}
{{ group.member_count }}
{% trans "News posts" %}
{{ object_counts.note }}
{% trans "Events" %}
{{ object_counts.event }}
{% endblock microsite_subheader %} {% block microsite_content %}
{# About Project box #}
  • {% if group.type == 0 %}{% trans "About the Project" %}{% else %}{% trans "About the Group" %}{% endif %}
{% block microsite_group_description %}
{% if group.description_long and group.description_long|length > 0 %} {{ group.description_long|textfield }} {% elif group.description and group.description|length > 0 %} {{ group.description|textfield }} {% else %} {% if group.type == 0 %} {% trans "There is no description for this project yet." %} {% else %} {% trans "There is no description for this group yet." %} {% endif %} {% endif %}
{% comment %}
https://www.flickr.com/photos/moopus/sets/72157601996566901 flashvars="offsite=true&lang=de-de&page_show_url=photos%2Fmoopus%2Fsets%2F72157601996566901%2Fshow%2F&page_show_back_url=photos%2Fmoopus%2Fsets%2F72157601996566901%2Fshow%2F&set_id=72157601996566901&"
{# flashvars="offsite=true&lang=de-de&page_show_url=%2Fphotos%2Fmitosthh%2Fsets%2F72157627537987744%2Fshow%2Fwith%2F6088857705%2F&page_show_back_url=%2Fphotos%2Fmitosthh%2Fsets%2F72157627537987744%2Fwith%2F6088857705%2F&set_id=72157627537987744&jump_to=6088857705" #}
smal
{% endcomment %} {% with gallery_images=group.gallery_images.all %} {% if group.video or gallery_images %} {# todo: check for video #}
{% if group.video %}
{{ group.render_video_embed }}
{% endif %} {# check for existing group video, if exists, make the gallery a full row, otherwise a lg-6 #}
{% for gallery_image in gallery_images %} {# up to 3 images side by side in video view , or 6 in non-video. xs always gets 2 images next to each other #} {% endfor %}
{% endif %} {% endwith %}

{% block microsite_metadata %} {% with tags=group.media_tag_object.tags.all topics=group.media_tag_object.topics %} {% if tags %} {% trans "Tags" %}: {% for tag in tags %} {{ tag }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if topics %} {% trans "Topics" %}: {% render_cosinnus_topics topics %}
{% endif %} {% endwith %} {% endblock microsite_metadata %}

{% with related_groups=group.related_groups.all %} {% if related_groups %}

{% trans "Related Projects/Groups" %}: {% for related_group in related_groups %} {{ related_group.name }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %} {% endwith %}

{% trans "Share" %}:     

{% endblock microsite_group_description %}
{% block microsite_left_column %} {# Contact box #}
  • {% trans "Contact" %}
{# Little hack to show an empty message, because a render-time empty check is complex due to extendable blocks #}
{% if group.contact_info and group.contact_info|length > 0 %}
{{ group.contact_info|textfield }}
{% endif %}

{% block microsite_group_contact %} {% if group.website %} {% trans "Website" %}: {{ group.website }}
{% endif %} {% with group_locations=group.locations.all %} {% if group_locations %} {% trans "Location" %}: {% for group_location in group.locations.all %} {{ group_location.location }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% endwith %} {% endblock microsite_group_contact %}

{% with group_admins=group.actual_admins %} {% if group_admins %}

{% if group.type == 0 %}{% trans "Project Administrator" %}{% else %}{% trans "Group Administrator" %}{% endif %}:  {% for admin in group_admins %} {{ admin|full_name }} {% if not forloop.last %}, {% endif %} {% endfor %}

{% with contact_url=group.get_admin_contact_url %} {% endwith %}
{% endif %} {% endwith %} {# Public objects box #} {% if public_objects %} {% for app_name, public_object_list in public_objects.items %} {% if not app_name == 'note' %} {% comment %} Fix "MICROSITE_DOUBLE_NEWSBOX": hide note box {% endcomment %}
  • {% trans app_name context "the_app" %}
{% with user=anonymous_user %} {% for public_object in public_object_list %} {% cosinnus_render_single_object public_object hide_group_name=True no_space=True %} {% endfor %} {% endwith %}
{% endif %} {% endfor %} {% endif %} {% endblock microsite_left_column %}
{% block microsite_right_column %} {# News box #} {% if not group|is_app_deactivated:'cosinnus_note' %}
  • {% trans "News" %}
{% endif %} {% if group.twitter_username %} {# Twitter username feed box #}
  • {% trans "Tweets" %}
{% include 'cosinnus/common/embed_twitter_field.html' with twitter_username=group.twitter_username %}
{% endif %} {% if group.twitter_widget_id %} {# Twitter custom feed box #}
  • {% trans "Tweets" %}
{% include 'cosinnus/common/embed_twitter_field.html' with twitter_widget_id=group.twitter_widget_id %}
{% endif %} {% if group.flickr_url %} {# Flickr custom feed box #}
  • {% trans "Flickr Gallery" %}
{% include 'cosinnus/common/embed_flickr_field.html' with data=group.get_flickr_properties %}
{% endif %} {% with call_to_action_buttons=group.call_to_action_buttons.all %} {% if group.call_to_action_active %} {% if call_to_action_buttons or group.call_to_action_description %} {# Call to Action box #}
  • {% if group.call_to_action_title %} {{ group.call_to_action_title }} {% else %} {% trans "Call to Action" %} {% endif %}
{% if group.call_to_action_description %}
{{ group.call_to_action_description|textfield }}
{% endif %} {% for cta_button in call_to_action_buttons %} {% endfor %}
{% endif %} {% endif %} {% endwith %} {% endblock microsite_right_column %}
{% endblock microsite_content %} {% endblock main_page %} {% block extrafooter %} {{ block.super }} {% endblock %}