{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2024 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 . # # --------------------------------------------------------------------- #} {% extends 'components/itilobject/timeline/form_timeline_item.html.twig' %} {% set params = {'parent': item}|merge(params|default({})) %} {% set candedit = item.maySolve() %} {% set can_read_kb = has_profile_right('knowbase', constant('READ')) or has_profile_right('knowbase', constant('KnowbaseItem::READFAQ')) %} {% set can_update_kb = has_profile_right('knowbase', constant('UPDATE')) %} {% set nokb = params['nokb'] is defined or params['nokb'] == true %} {% set rand = random() %} {% set formoptions = params['formoptions'] ?? '' %} {% block timeline_card %} {% if form_mode == 'view' %}
{{ entry_i['content']|enhanced_html({ 'user_mentions': true, 'images_gallery': true }) }}
{% if entry_i['users_id_tech'] %} {% set is_current_tech = (entry_i['users_id_tech'] == session('glpiID')) %} {% set anonym_tech = (get_current_interface() == 'helpdesk' and not is_current_tech and entity_config('anonymize_support_agents', session('glpiactive_entity')) != constant('Entity::ANONYMIZE_DISABLED')) %} {{ include('components/user/link_with_tooltip.html.twig', { 'users_id': entry_i['users_id_tech'], 'enable_anonymization': anonym_tech }, with_context = false) }} {% endif %} {% if entry_i['groups_id_tech'] %} {{ get_item_link('Group', entry_i['groups_id_tech'], {'enable_anonymization': true}) }} {% endif %} {% if entry_i['taskcategories_id'] %} {{ get_item_name('TaskCategory', entry_i['taskcategories_id']) }} {% endif %} {% if entry_i['actiontime'] %} {{ entry_i['actiontime']|formatted_duration }} {% endif %} {% if entry_i['begin'] %} {{ entry_i['begin']|formatted_datetime }} ⇒ {{ entry_i['end']|formatted_datetime }} {% endif %} {% if entry_i['sourceitems_id'] %} {% set merged_badge %} {{ get_item_link('Ticket', entry_i['sourceitems_id']) }} {% endset %} {{ __('Merged from Ticket %1$s')|format(merged_badge)|raw }} {% endif %} {% if entry_i['sourceof_items_id'] %} {% set promoted_badge %} {{ get_item_link('Ticket', entry_i['sourceof_items_id']) }} {% endset %} {{ __('Promoted to Ticket %1$s')|format(promoted_badge)|raw }} {% endif %} {{ include('components/itilobject/timeline/pending_reasons_messages.html.twig') }}
{% else %} {% include('components/itilobject/timeline/form_task_main_form.html.twig') %} {% endif %} {% endblock %}