From 98e7f058bd5904ea18a6cbc7704e8f84698b86f6 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Wed, 9 Jun 2021 12:35:46 +0200 Subject: [PATCH] Display error message for recent habits --- source/templates/classic/partials/habits.ejs | 48 ++++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/source/templates/classic/partials/habits.ejs b/source/templates/classic/partials/habits.ejs index 762a8c86..fe3be6b0 100644 --- a/source/templates/classic/partials/habits.ejs +++ b/source/templates/classic/partials/habits.ejs @@ -7,31 +7,31 @@ (computed from last <%= plugins.habits.commits.fetched %> commit<%= s(plugins.habits.commits.fetched) %>) <% } %> - <% if (plugins.habits.facts) { %> + <% if (plugins.habits.error) { %>
- <% if (plugins.habits.error) { %> -
-
- - <%= plugins.habits.error.message %> -
-
- <% } else { %> - - <% } %> +
+
+ + <%= plugins.habits.error.message %> +
+
+
+ <% } else if (plugins.habits.facts) { %> +
+
<% } %>