{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2023 Teclib' and contributors. # @copyright 2003-2014 by the INDEPNET Development Team. # @licence https://www.gnu.org/licenses/gpl-3.0.html # # --------------------------------------------------------------------- # # LICENSE # # This file is part of GLPI. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # --------------------------------------------------------------------- #}
{{ item_fields.name|verbatim_value }}
{% if item_fields.is_milestone %} {{ __('Milestone') }} {% endif %}
{% macro print_hook_section(name, itemtype, items_id) %} {% set content = call_plugin_hook_func(name, { "itemtype": itemtype, "items_id": items_id }, true) %} {% if content is not empty and content['content']|trim is not empty %} {{ content['content']|raw }}
{% endif %} {% endmacro %} {{ _self.print_hook_section('pre_kanban_panel_content', itemtype, item_fields.id) }} {{ _self.print_hook_section('pre_kanban_panel_main_content', itemtype, item_fields.id) }} {% set content = item_fields.content|safe_html %} {% set preview = content|length > 1000 ? content|slice(0, 1000) ~ ' (...)' : content %}
{{ preview|safe_html }}
{{ _self.print_hook_section('post_kanban_panel_main_content', itemtype, item_fields.id) }}
{{ __('Team') }}
{% if team is not empty %} {% set item = itemtype|itemtype_class %} {% if item is usingtrait('Glpi\\Features\\Teamwork') %} {% for team_role in item.getTeamRoles() %} {% set role_members = team|filter(m => m.role == team_role) %} {% if role_members|length > 0 %}
{{ item.getTeamRoleName(team_role, get_plural_number()) }}
    {% for team_member in role_members %}
  • {# Contents added in Kanban JS #}
  • {% endfor %}
{% endif %} {% endfor %} {% endif %} {% else %} {{ __('No team members') }} {% endif %}
{{ _self.print_hook_section('post_kanban_panel_content', itemtype, item_fields.id) }}