{# # ------------------------------------------------------------------------- # News plugin for GLPI # ------------------------------------------------------------------------- # # LICENSE # # This file is part of News. # # News 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 2 of the License, or # (at your option) any later version. # # News 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 News. If not, see . # ------------------------------------------------------------------------- # @copyright Copyright (C) 2015-2022 by News plugin team. # @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html # @link https://github.com/pluginsGLPI/news # ------------------------------------------------------------------------- #} {% set js_rand = random() %}

{{ alert_fields.name|verbatim_value }} {% if show_only_login_alerts %} {% endif %}

{% if alert_fields.display_dates %}
{{ alert_fields.date_start|formatted_datetime }} {% if not alert_fields.date_start is empty and not alert_fields.date_end is empty %} - {% endif %} {{ alert_fields.date_end|formatted_datetime }}
{% endif %}
{{ content|safe_html }}
{% if can_close %} {% endif %}