Skip to content
Snippets Groups Projects
Commit f401383e authored by Fynn Becker's avatar Fynn Becker :crab:
Browse files

Fix session timer to work with format localization

parent 5caa33a5
No related branches found
No related tags found
No related merge requests found
{% load i18n %}
{% load l10n %}
{% comment %}
This template can be included in apps that need to handle any kind of custom sessions.
......@@ -35,7 +36,7 @@ Also make sure to include the corresponding javascript in your "base.html":
<div class="navbar-item has-text-grey">
{% trans "Your session will automatically expire in:" %}
<span class="icon is-small has-text-left has-text-right"><i class="fa fa-clock-o"></i></span>
<span id="session_timer" data-initial-seconds-left="{{ initial_seconds_left }}">00:00</span>
<span id="session_timer" data-initial-seconds-left="{{ initial_seconds_left|unlocalize }}">00:00</span>
</div>
<a href="{% url "flush-session" %}" class="navbar-item">
<span class="icon is-small has-text-right"><i class="fa {% if end_session_icon %}{{ end_session_icon }}{% else %}fa-sign-out{% endif %}"></i></span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment