aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-05-25 16:40:45 +0200
committerArthurHoaro <arthur@hoa.ro>2019-05-25 16:40:45 +0200
commit5321f704b563df03232e2f8a1d2a26ecb8297428 (patch)
treee099496fa676c46a792b72c661ec1777838e8436 /tpl
parentc3a04e328f2c8d40890b0b26b118a193110634ce (diff)
downloadShaarli-5321f704b563df03232e2f8a1d2a26ecb8297428.tar.gz
Shaarli-5321f704b563df03232e2f8a1d2a26ecb8297428.tar.zst
Shaarli-5321f704b563df03232e2f8a1d2a26ecb8297428.zip
Daily - display the current day instead of the previous one
Also mention if it's today or yesterday for clarity using `dayDesc` variable Fixes #1299
Diffstat (limited to 'tpl')
-rw-r--r--tpl/default/daily.html7
-rw-r--r--tpl/vintage/daily.html3
2 files changed, 9 insertions, 1 deletions
diff --git a/tpl/default/daily.html b/tpl/default/daily.html
index 359ecbd0..6b5103a4 100644
--- a/tpl/default/daily.html
+++ b/tpl/default/daily.html
@@ -44,7 +44,12 @@
44 </div> 44 </div>
45 </div> 45 </div>
46 <div> 46 <div>
47 <h3 class="window-subtitle">{function="format_date($dayDate, false)"}</h3> 47 <h3 class="window-subtitle">
48 {if="!empty($dayDesc)"}
49 {$dayDesc} -
50 {/if}
51 {function="format_date($dayDate, false)"}
52 </h3>
48 53
49 <div id="plugin_zone_about_daily" class="plugin_zone"> 54 <div id="plugin_zone_about_daily" class="plugin_zone">
50 {loop="$daily_about_plugin"} 55 {loop="$daily_about_plugin"}
diff --git a/tpl/vintage/daily.html b/tpl/vintage/daily.html
index 71d84475..00f18e26 100644
--- a/tpl/vintage/daily.html
+++ b/tpl/vintage/daily.html
@@ -35,6 +35,9 @@
35 35
36 <div class="dailyDate"> 36 <div class="dailyDate">
37 <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span> 37 <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span>
38 {if="!empty($dayDesc)"}
39 {$dayDesc} -
40 {/if}
38 {function="strftime('%A %d, %B %Y', $day)"} 41 {function="strftime('%A %d, %B %Y', $day)"}
39 <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span> 42 <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span>
40 </div> 43 </div>