Add relative date support
Changed Date display to be relative. If the relative date is hovered over it shows the actual date and time.
This commit is contained in:
parent
a32b1da684
commit
c242998e29
@ -30,7 +30,7 @@
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<li class="hide-mobile">
|
||||
<?= dt('%e %B %Y %k:%M', $item['updated']) ?>
|
||||
<span title="<?= dt('%e %B %Y %k:%M', $item['updated']) ?>"><?= Helper\relative_time(dt('%e %B %Y %k:%M', $item['updated'])) ?></span>
|
||||
</li>
|
||||
<li class="hide-mobile">
|
||||
<a href="<?= $item['url'] ?>" id="original-<?= $item['id'] ?>" rel="noreferrer" target="_blank" data-item-id="<?= $item['id'] ?>"><?= t('original link') ?></a>
|
||||
|
Loading…
Reference in New Issue
Block a user