Display error message for recent habits

This commit is contained in:
lowlighter
2021-06-09 12:35:46 +02:00
parent 606838fe4c
commit 98e7f058bd

View File

@@ -7,16 +7,17 @@
<small class="h-details">(computed from last <%= plugins.habits.commits.fetched %> commit<%= s(plugins.habits.commits.fetched) %>)</small> <small class="h-details">(computed from last <%= plugins.habits.commits.fetched %> commit<%= s(plugins.habits.commits.fetched) %>)</small>
<% } %> <% } %>
</h2> </h2>
<% if (plugins.habits.facts) { %>
<div class="row">
<% if (plugins.habits.error) { %> <% if (plugins.habits.error) { %>
<div class="row">
<section> <section>
<div class="field error"> <div class="field error">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2.343 13.657A8 8 0 1113.657 2.343 8 8 0 012.343 13.657zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"></path></svg> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2.343 13.657A8 8 0 1113.657 2.343 8 8 0 012.343 13.657zM6.03 4.97a.75.75 0 00-1.06 1.06L6.94 8 4.97 9.97a.75.75 0 101.06 1.06L8 9.06l1.97 1.97a.75.75 0 101.06-1.06L9.06 8l1.97-1.97a.75.75 0 10-1.06-1.06L8 6.94 6.03 4.97z"></path></svg>
<%= plugins.habits.error.message %> <%= plugins.habits.error.message %>
</div> </div>
</section> </section>
<% } else { %> </div>
<% } else if (plugins.habits.facts) { %>
<div class="row">
<ul class="habits"> <ul class="habits">
<% if (plugins.habits.indents.style) { %> <% if (plugins.habits.indents.style) { %>
<li>Uses <%= plugins.habits.indents.style %> for indentation</li> <li>Uses <%= plugins.habits.indents.style %> for indentation</li>
@@ -31,7 +32,6 @@
<li>Mostly active on <%= plugins.habits.commits.day %></li> <li>Mostly active on <%= plugins.habits.commits.day %></li>
<% } %> <% } %>
</ul> </ul>
<% } %>
</div> </div>
<% } %> <% } %>
</section> </section>