diff options
author | Julien Dessaux | 2021-10-31 13:27:38 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-10-31 17:30:49 +0100 |
commit | f1cd786cd745c6fa2a419648af968e9a66937ffb (patch) | |
tree | 383f8453d89572d9e0f243099091c95fe11903d9 /src/templates | |
parent | Replaced uuid with the shorter nanoids (diff) | |
download | short-f1cd786cd745c6fa2a419648af968e9a66937ffb.tar.gz short-f1cd786cd745c6fa2a419648af968e9a66937ffb.tar.bz2 short-f1cd786cd745c6fa2a419648af968e9a66937ffb.zip |
Pretty print the creation and expiration dates
Diffstat (limited to '')
-rw-r--r-- | src/templates/short.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/templates/short.html b/src/templates/short.html index 1f36fdf..fac811c 100644 --- a/src/templates/short.html +++ b/src/templates/short.html @@ -3,7 +3,9 @@ <h1>{{ $req.Title }}</h1> <p><a href="{{ $req.Url }}">{{ $req.Url }}</a></p> <p> -Created on : {{ $req.Created }}<br> -Expires on : {{ $req.Expires }} +{% let created = req.Created.format("yyyy-MM-dd") %} +{% let expires = req.Expires.format("yyyy-MM-dd") %} +Created on : {{ $created }}<br> +Expires on : {{ $expires }} </p> {% endblock %} |