Skip to content
Snippets Groups Projects
Commit 7d174ad8 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed the bug with dates from the future signaled as past in event detail view.

parent 96be5d85
No related branches found
No related tags found
No related merge requests found
......@@ -427,6 +427,14 @@
----------------------------------------------------------------------------- #}
{%- macro render_info_timeinterval(lower, upper) -%}
{%- if lower < upper -%}
{{ _('%(delta)s ago', delta = babel_format_timedelta(upper - lower)) }}
{%- else -%}
{{ _('%(delta)s in future', delta = babel_format_timedelta(lower - upper)) }}
{%- endif -%}
{%- endmacro %}
{%- macro render_event_label_severity(event, with_label = False) %}
{%- set tmpval = event.get_severity() %}
{%- if not tmpval or tmpval == 'unknown' %}
......
This diff is collapsed.
......@@ -20,4 +20,4 @@ open-source project.
__author__ = "Jan Mach <jan.mach@cesnet.cz>"
__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
__version__ = "2.4.5"
__version__ = "2.4.6"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment