Add the last checked date to the feeds list
This commit is contained in:
parent
e7be31c92c
commit
d12fa5b76b
@ -380,6 +380,11 @@ nav .active a {
|
|||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feed-last-checked {
|
||||||
|
color: brown;
|
||||||
|
font-size: 0.7em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/* items listing */
|
/* items listing */
|
||||||
.items article {
|
.items article {
|
||||||
|
@ -164,6 +164,9 @@
|
|||||||
{
|
{
|
||||||
var container = document.getElementById("loading-feed-" + feed_id);
|
var container = document.getElementById("loading-feed-" + feed_id);
|
||||||
if (container) container.innerHTML = "";
|
if (container) container.innerHTML = "";
|
||||||
|
|
||||||
|
var container = document.getElementById("last-checked-feed-" + feed_id);
|
||||||
|
if (container) container.innerHTML = container.getAttribute("data-after-update");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -186,7 +189,6 @@
|
|||||||
var response = JSON.parse(this.responseText);
|
var response = JSON.parse(this.responseText);
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|
||||||
callback(response);
|
callback(response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
'updated just now' => 'mis à jour à l\'instant',
|
||||||
|
'checked at' => 'vérifié le',
|
||||||
|
'never updated after creation' => 'jamais mis à jour après la création',
|
||||||
'Unable to enable this subscription.' => 'Impossible d\'activer cet abonnement.',
|
'Unable to enable this subscription.' => 'Impossible d\'activer cet abonnement.',
|
||||||
'This subscription has been enabled successfully.' => 'L\'abonnement a été activé avec succès.',
|
'This subscription has been enabled successfully.' => 'L\'abonnement a été activé avec succès.',
|
||||||
'Unable to disable this subscription.' => 'Impossible de désactiver cet abonnement.',
|
'Unable to disable this subscription.' => 'Impossible de désactiver cet abonnement.',
|
||||||
|
@ -30,6 +30,17 @@
|
|||||||
|
|
||||||
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\escape($feed['title']) ?></a>
|
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\escape($feed['title']) ?></a>
|
||||||
|
|
||||||
|
<?php if ($feed['enabled']): ?>
|
||||||
|
<?php if ($feed['last_checked']): ?>
|
||||||
|
<time class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('updated just now') ?>">
|
||||||
|
<?= t('checked at').' '.dt('%e %B %Y %k:%M', $feed['last_checked']) ?>
|
||||||
|
</time>
|
||||||
|
<?php else: ?>
|
||||||
|
<span class="feed-last-checked" id="last-checked-feed-<?= $feed['id'] ?>" data-after-update="<?= t('now') ?>">
|
||||||
|
<?= t('never updated after creation') ?>
|
||||||
|
</span>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php endif ?>
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\get_host_from_url($feed['site_url']) ?></a> |
|
<a href="<?= $feed['site_url'] ?>" rel="noreferrer" target="_blank"><?= Helper\get_host_from_url($feed['site_url']) ?></a> |
|
||||||
|
Loading…
Reference in New Issue
Block a user