kitware-resonant / django-resonant-utils

Django utilities for data management applications.
Apache License 2.0
2 stars 1 forks source link

Add localtime template tag #39

Open danlamanna opened 2 years ago

danlamanna commented 2 years ago

Fixes #37

This requires adding the time-elements script (https://github.com/github/time-elements) to the pages this is used on.

zachmullen commented 10 months ago

I'd love for this to be upstreamed and agree with @brianhelba 's suggestion of an additional template tag to include the JS.

zachmullen commented 10 months ago

This is a working incantation for getting the library from CDN:

<script type="module" src="https://cdn.jsdelivr.net/npm/@github/relative-time-element@4.3.0/+esm"></script>