fix unlock date

This commit is contained in:
Holly Stubbs 2024-10-08 11:41:38 +01:00
parent fb971eee19
commit 56aa64c5ce
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -69,7 +69,7 @@
<% for (const badgeKey of badgeById.keys) { %> <% for (const badgeKey of badgeById.keys) { %>
<% const badge = badgeById.get(badgeKey); const unlockedBadge = unlockedBadgesById.get(badgeKey); %> <% const badge = badgeById.get(badgeKey); const unlockedBadge = unlockedBadgesById.get(badgeKey); %>
<% if (unlockedBadge) { %> <% if (unlockedBadge) { %>
<span class="d-inline-block mb-3" tabindex="0" data-bs-toggle="popover" data-bs-trigger="hover focus" data-bs-placement="top" data-bs-title="<%= badge.Name %>" data-bs-content="<%= badge.Description %><br><small>Unlocked on <%= badge.CreatedDatetime.toString().split(" ").slice(1, 4).join(" ") %></small>"> <span class="d-inline-block mb-3" tabindex="0" data-bs-toggle="popover" data-bs-trigger="hover focus" data-bs-placement="top" data-bs-title="<%= badge.Name %>" data-bs-content="<%= badge.Description %><br><small>Unlocked on <%= unlockedBadge.CreatedDatetime.toString().split(" ").slice(1, 4).join(" ") %></small>">
<img width="32" height="32" src="<%= badge.ImageUrl %>"> <img width="32" height="32" src="<%= badge.ImageUrl %>">
</span> </span>
<% } else if (!badge.IsSecret) { %> <% } else if (!badge.IsSecret) { %>