Skip to content

Commit

Permalink
Disable default mako filter before attempting to get a raw date in a …
Browse files Browse the repository at this point in the history
…filter

Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Apr 18, 2024
1 parent 8444134 commit cc334b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tahrir/templates/assertion_widget.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="${request.route_url('user', id=assertion.person.nickname or assertion.person.id)}">
${assertion.person.nickname}
</a>
<span class="date">${assertion.issued_on | relative_time}</span>
<span class="date">${assertion.issued_on | n,relative_time}</span>
</div>
${functions.badge_thumbnail(assertion.badge, 64, 33)}
</div>
2 changes: 1 addition & 1 deletion tahrir/templates/index.mak
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<a href="${request.route_url('user', id=assertion.person.nickname or assertion.person.id)}">
${assertion.person.nickname}
</a>
<span class="date">${assertion.issued_on | relative_time}</span>
<span class="date">${assertion.issued_on | n,relative_time}</span>
</div>
${self.functions.badge_thumbnail(assertion.badge, 64, 33)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion tahrir/templates/user.mak
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<ul class='pretty-list'>
% for i in invitations:
<li>
${i.badge.name}, expires ${i.expires_on | relative_time},
${i.badge.name}, expires ${i.expires_on | n,relative_time},
<a href="${"/invitations/" + i.id + "/claim"}">[claim link]</a>,
<a href="${"/invitations/" + i.id + "/qrcode"}">[QR code]</a>.
</li>
Expand Down

0 comments on commit cc334b9

Please sign in to comment.