]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
daily: display link timestamps 100/head
authorVirtualTam <virtualtam@flibidi.org>
Wed, 14 Jan 2015 23:05:26 +0000 (00:05 +0100)
committerVirtualTam <virtualtam@flibidi.org>
Wed, 14 Jan 2015 23:05:26 +0000 (00:05 +0100)
Fixes #26

Signed-off-by: VirtualTam <virtualtam@flibidi.org>
inc/shaarli.css
index.php
tpl/daily.html

index 4bd52810aeb6491cb608af58086ed624e96be489..325515ef500dace98b3a89b94c98f19a6cfd0b38 100644 (file)
@@ -812,6 +812,10 @@ div.dailyEntryTitle {
     font-weight: bold;
 }
 
+div.dailyEntryLinkdate {
+    font-size: 8pt;
+}
+
 div.dailyEntryThumbnail {
     width: 100%;
     text-align: center;
index 4cb25ab7a5800e19fdd3846403f3b82aa7457673..96a128fd69d60575f483837a18b0176cdff1b6b8 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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.
index e39ae7abacf1dd2ecc09ace59a928b8670ca0a6b..c53e6f7170e33103177f6e2b631c76d1e769e590 100644 (file)
                                 <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"}