gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit cf46771156c1562888ed83acad2c15b3acd68173
parent dd28749bbec21d2480d5364fc83da24ea23ef519
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Fri,  8 May 2020 14:38:18 -0500

Add locale timestamps

Diffstat:
Mtemplates/single_note.html | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/templates/single_note.html b/templates/single_note.html @@ -7,16 +7,18 @@ <div class="note-meta"> {% if note.note.neighborhood %}🏠{%endif%} {% if note.note.is_remote %}🌎{%endif%} - <a href="/note/{{note.note.id}}">📝{{note.note.id}}</a> {{note.note.created_time}} <a + <a href="/note/{{note.note.id}}">📝{{note.note.id}}</a> + <script>var d = new Date('{{note.note.created_time}}'); document.write(d.toLocaleString())</script> + <noscript>{{note.note.created_time}}</noscript> <a class="bold" href="/user/{{note.username}}">@{{note.username}}</a> {% if global.logged_in %} -<a href="#" onclick="reply({{note.note.id}}, '{{note.username}}')">↪</a> +<a title="reply" href="#" onclick="reply({{note.note.id}}, '{{note.username}}')">↪</a> {% endif %} {% if note.note.user_id == global.me.id %} <form method="post" action="/delete_note" class="inline"> <input type="hidden" name="note_id" value="{{note.note.id}}"> <input type="hidden" name="redirect_url" value="{{global.page}}"> - <button type="submit" name="submit_param" value="submit_value" + <button type="submit" title="delete note" name="submit_param" value="submit_value" class="link-button">✕</button> </form> {%endif%}