From bdee3ceb4039b2f572c4f45038ad4d03074999bd Mon Sep 17 00:00:00 2001
From: Markus Scheller <mscheller@asta.rwth-aachen.de>
Date: Thu, 1 Mar 2018 15:55:36 +0100
Subject: [PATCH] Edit alert message so that 'morgen' is shown when only 1 day
 is left.

close protokollsystem/proto3#60
---
 templates/protocol-show.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/protocol-show.html b/templates/protocol-show.html
index 882700c..d4d99ad 100644
--- a/templates/protocol-show.html
+++ b/templates/protocol-show.html
@@ -26,7 +26,7 @@
                 {% endif %}
                 {% if not protocol.public %}
                     {% if config.ETHERPAD_ACTIVE %}
-                    <a class="btn btn-primary" href="{{url_for("etherpush_protocol", protocol_id=protocol.id)}}"{% if large_time_diff %} onclick="return confirm('Bist du dir sicher, dass du das Template bereits in das Etherpad kopieren willst? Die Sitzung ist erst in {{time_diff.days}} Tagen.');"{% endif %} target="_blank">Etherpad</a>
+                    <a class="btn btn-primary" href="{{url_for("etherpush_protocol", protocol_id=protocol.id)}}"{% if large_time_diff %} onclick="return confirm('Bist du dir sicher, dass du das Template bereits in das Etherpad kopieren willst? Die Sitzung ist erst {% if time_diff.days != 1 %}in {{time_diff.days}} Tagen{% else %}morgen{% endif %}.');"{% endif %} target="_blank">Etherpad</a>
                     {% endif %}
                 {% endif %}
                 {% if not protocol.is_done() %}
-- 
GitLab