diff options
author | VirtualTam <virtualtam@flibidi.org> | 2015-01-15 00:05:26 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.org> | 2015-01-15 00:05:26 +0100 |
commit | 38a2d03e34a309abee2b243738fdce1c4cb0be16 (patch) | |
tree | 332c886e4b01cb4ac83afe7b1f5c6fee71b5f09b | |
parent | 486f25a5f4ab2a9191618edcb89ebb61350ff600 (diff) | |
download | Shaarli-38a2d03e34a309abee2b243738fdce1c4cb0be16.tar.gz Shaarli-38a2d03e34a309abee2b243738fdce1c4cb0be16.tar.zst Shaarli-38a2d03e34a309abee2b243738fdce1c4cb0be16.zip |
daily: display link timestamps
Fixes #26
Signed-off-by: VirtualTam <virtualtam@flibidi.org>
-rw-r--r-- | inc/shaarli.css | 4 | ||||
-rw-r--r-- | index.php | 1 | ||||
-rw-r--r-- | tpl/daily.html | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/inc/shaarli.css b/inc/shaarli.css index 4bd52810..325515ef 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css | |||
@@ -812,6 +812,10 @@ div.dailyEntryTitle { | |||
812 | font-weight: bold; | 812 | font-weight: bold; |
813 | } | 813 | } |
814 | 814 | ||
815 | div.dailyEntryLinkdate { | ||
816 | font-size: 8pt; | ||
817 | } | ||
818 | |||
815 | div.dailyEntryThumbnail { | 819 | div.dailyEntryThumbnail { |
816 | width: 100%; | 820 | width: 100%; |
817 | text-align: center; | 821 | text-align: center; |
@@ -1151,6 +1151,7 @@ function showDaily() | |||
1151 | $linksToDisplay[$key]['taglist']=$taglist; | 1151 | $linksToDisplay[$key]['taglist']=$taglist; |
1152 | $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); | 1152 | $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); |
1153 | $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); | 1153 | $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); |
1154 | $linksToDisplay[$key]['localdate'] = linkdate2locale($link['linkdate']); | ||
1154 | } | 1155 | } |
1155 | 1156 | ||
1156 | /* We need to spread the articles on 3 columns. | 1157 | /* We need to spread the articles on 3 columns. |
diff --git a/tpl/daily.html b/tpl/daily.html index e39ae7ab..c53e6f71 100644 --- a/tpl/daily.html +++ b/tpl/daily.html | |||
@@ -28,6 +28,11 @@ | |||
28 | <img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink"> | 28 | <img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink"> |
29 | </a> | 29 | </a> |
30 | </div> | 30 | </div> |
31 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | ||
32 | <div class="dailyEntryLinkdate"> | ||
33 | <a href="?{$link.linkdate|smallHash}">{$link.localdate}</a> | ||
34 | </div> | ||
35 | {/if} | ||
31 | {if="$link.tags"} | 36 | {if="$link.tags"} |
32 | <div class="dailyEntryTags"> | 37 | <div class="dailyEntryTags"> |
33 | {loop="link.taglist"} | 38 | {loop="link.taglist"} |