{% 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 %}
{% trans "Not happy with how your Microsite looks?" %} {% trans "Change it here..." %}
{% 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 %}
{% 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 %}
{% trans "Related Projects/Groups" %}: {% for related_group in related_groups %} {{ related_group.name }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% endwith %} {% endblock microsite_group_description %}
{% 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 %}
{% 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 %}