daily: display link timestamps

Fixes #26

Signed-off-by: VirtualTam <virtualtam@flibidi.org>
This commit is contained in:
VirtualTam 2015-01-15 00:05:26 +01:00
parent 486f25a5f4
commit 38a2d03e34
3 changed files with 10 additions and 0 deletions

View file

@ -812,6 +812,10 @@ div.dailyEntryTitle {
font-weight: bold;
}
div.dailyEntryLinkdate {
font-size: 8pt;
}
div.dailyEntryThumbnail {
width: 100%;
text-align: center;

View file

@ -1151,6 +1151,7 @@ function showDaily()
$linksToDisplay[$key]['taglist']=$taglist;
$linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))));
$linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']);
$linksToDisplay[$key]['localdate'] = linkdate2locale($link['linkdate']);
}
/* We need to spread the articles on 3 columns.

View file

@ -28,6 +28,11 @@
<img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink">
</a>
</div>
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
<div class="dailyEntryLinkdate">
<a href="?{$link.linkdate|smallHash}">{$link.localdate}</a>
</div>
{/if}
{if="$link.tags"}
<div class="dailyEntryTags">
{loop="link.taglist"}