{% extends "base.html" %} {% block title %}{{ _('Project Group') }} #{{ project.id }}: {{ project.name | get_translated_text }} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block content %} {% set allowed_language_ids = [] %} {% for language in languages %} {{ allowed_language_ids.append(language.id) or '' }} {% endfor %}

{{ _('Project Group') }} #{{ project.id }}: {{ project.name | get_translated_text }}

{% if object_id is not none %}

{{ _('This project group is linked to %(object_type)s #%(object_id)d%(object_name)s.', object_type=((object_action.type.object_name | get_translated_text) if object_action else _('Object')), object_id=object_id, object_name=((': ' + (object.data.name.text | get_translated_text)) if object else ''), object_url=url_for(".object", object_id=object_id)) }}

{% endif %} {% if project_group_categories %}

{{ _('Categories') }}: {% for category in project_group_categories %} {%- if not loop.first %}, {% endif -%} {%- for category_name in group_category_names[category.id] -%} {%- if not loop.first %} / {% endif -%} {{ category_name | get_translated_text(default=_('Unnamed Category')) }} {%- endfor -%} {% endfor %}

{% endif %}

{{ project.description | get_translated_text }}

{% if not config['DISABLE_SUBPROJECTS'] %} {% if parent_project_ids %} {{ _('This project group is a part of') }} {% if parent_project_ids | length > 2 %} {% for project_id in parent_project_ids[:-2] %} {% with project = get_project(project_id) %} {{ project.name | get_translated_text }}, {% endwith %} {% endfor %} {% endif %} {% if parent_project_ids | length > 1 %} {% with project = get_project(parent_project_ids[-2]) %} {{ project.name | get_translated_text }} {{ _('and') }} {% endwith %} {% endif %} {% if parent_project_ids | length > 0 %} {% with project = get_project(parent_project_ids[-1]) %} {{ project.name | get_translated_text }}. {% endwith %} {% endif %} {% endif %} {% if child_project_ids %}

{{ _('Child Project Groups') }}

{% endif %} {% endif %}

{{ _('Members') }}

{% if show_invitation_log %} {% with all_invitations = project_invitations %} {% include "invitation_log.html" %} {% endwith %} {% elif project_invitations %} {% with pending_invitations = project_invitations %} {% include "pending_invitations.html" %} {% endwith %} {% endif %}
{% if show_objects_link %}
{{ _('View Objects') }}
{% endif %} {% if not current_user.is_readonly %} {% if edit_project_form %} {% endif %} {% if not config['DISABLE_SUBPROJECTS'] %} {% if add_subproject_form %} {% endif %} {% if remove_subproject_form %} {% endif %} {% endif %} {% if invite_user_form %} {% endif %} {% if invite_group_form %} {% endif %} {% if user_may_edit_permissions %} {{ _('Edit Permissions') }} {% endif %} {% endif %} {% if not current_user.is_readonly and not object_id and object_link_form %} {% endif %} {% if not current_user.is_readonly and object_id and object_link_form %} {% endif %} {% if leave_project_form %}
{{ leave_project_form.csrf_token() }}
{% endif %} {% if not current_user.is_readonly %} {% if delete_project_form %} {% endif %} {% endif %}
{% if not current_user.is_readonly and object_id and object_link_form %} {% endif %} {% if not current_user.is_readonly and not object_id and object_link_form %} {% endif %} {% if edit_project_form %} {% endif %} {% if invite_user_form %} {% endif %} {% if invite_group_form %} {% endif %} {% if not config['DISABLE_SUBPROJECTS'] %} {% if add_subproject_form %} {% endif %} {% if remove_subproject_form %} {% endif %} {% endif %} {% if delete_project_form %} {% endif %} {% endblock %} {% block template_values %} {% set language_info_languages = [] %} {% for lang in languages %} {% do language_info_languages.append({"id": lang.id | string, "name": lang.names | get_translated_text, "lang_code": lang.lang_code}) %} {% endfor %} {% do set_template_value("language_info.languages", language_info_languages) %} {% do set_template_value("language_info.english_id", ENGLISH.id) %} {% do set_template_value("translations", translations) %} {% do set_template_value("name_language_ids", name_language_ids) %} {% do set_template_value("description_language_ids", description_language_ids) %} {% do set_template_value("show_edit_form", show_edit_form) %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% if object_link_form and not object_id and not current_user.is_readonly %} {% endif %} {% endblock %}