From 9646b7da22c4c6f3419bfe51431720dd622374d8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 3 Aug 2016 09:44:04 +0200 Subject: Save the update date in LinkDB and pass it to linklist templates It can be used as a timestamp by templates under the key 'updated_timestamp'. --- tpl/linklist.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tpl/linklist.html') diff --git a/tpl/linklist.html b/tpl/linklist.html index 2316f145..9979f12a 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -89,7 +89,16 @@
{if="$value.description"}
{$value.description}
{/if} {if="!$hide_timestamps || isLoggedIn()"} - {function="strftime('%c', $value.timestamp)"} - permalink - + {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} + + + + {function="strftime('%c', $value.timestamp)"} + {if="$value.updated_timestamp"}*{/if} + + - permalink + - + {else} permalink - {/if} -- cgit v1.2.3