aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-03 09:44:04 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-03 09:44:04 +0200
commit9646b7da22c4c6f3419bfe51431720dd622374d8 (patch)
tree0f5c685ecb63409a8d478aaa0c4ecb4fba475560 /tpl
parentc7a42ab1d9b21bf53cd30bc57b57789716c8711b (diff)
downloadShaarli-9646b7da22c4c6f3419bfe51431720dd622374d8.tar.gz
Shaarli-9646b7da22c4c6f3419bfe51431720dd622374d8.tar.zst
Shaarli-9646b7da22c4c6f3419bfe51431720dd622374d8.zip
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'.
Diffstat (limited to 'tpl')
-rw-r--r--tpl/linklist.html11
1 files changed, 10 insertions, 1 deletions
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 @@
89 <br> 89 <br>
90 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if} 90 {if="$value.description"}<div class="linkdescription">{$value.description}</div>{/if}
91 {if="!$hide_timestamps || isLoggedIn()"} 91 {if="!$hide_timestamps || isLoggedIn()"}
92 <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{function="strftime('%c', $value.timestamp)"} - permalink</a> - </span> 92 {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'}
93 <span class="linkdate" title="Permalink">
94 <a href="?{$value.linkdate|smallHash}">
95 <span title="{$updated}">
96 {function="strftime('%c', $value.timestamp)"}
97 {if="$value.updated_timestamp"}*{/if}
98 </span>
99 - permalink
100 </a> -
101 </span>
93 {else} 102 {else}
94 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span> 103 <span class="linkdate" title="Short link here"><a href="?{$value.shorturl}">permalink</a> - </span>
95 {/if} 104 {/if}