aboutsummaryrefslogtreecommitdiff
path: root/app/views/update/index.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 18:30:24 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 18:30:24 +0200
commita4e43e9c53ac404d16af5d913a56eeb444b1ce10 (patch)
treeddd33b85779d86ce78ef8192bb9e707cc32423dc /app/views/update/index.phtml
parentc2ca9805fa61d045fa5466a8c3ba88d8a0c5a299 (diff)
Message if last update checking is close
last_update.txt is updated even if there is no update If last_update.txt has been modified during last hour, show a message See https://github.com/marienfressinaud/FreshRSS/issues/480#issuecomment-55765373
Diffstat (limited to 'app/views/update/index.phtml')
-rw-r--r--app/views/update/index.phtml17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/views/update/index.phtml b/app/views/update/index.phtml
index 1824c02b8..5be8b1e8b 100644
--- a/app/views/update/index.phtml
+++ b/app/views/update/index.phtml
@@ -5,17 +5,26 @@
<h1><?php echo _t('update_system'); ?></h1>
+ <p>
+ <?php echo _i('help'); ?> <?php echo _t('update_last', $this->last_update_time); ?>
+ </p>
+
<?php if (!empty($this->message)) { ?>
<p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>">
<span class="alert-head"><?php echo $this->message['title']; ?></span>
<?php echo $this->message['body']; ?>
</p>
+ <?php } elseif ($this->check_last_hour) { ?>
+ <p class="alert alert-warn">
+ <span class="alert-head"><?php echo _t('damn'); ?></span>
+ <?php echo _t('no_update'); ?>
+ </p>
<?php } ?>
- <?php if (empty($this->message) || $this->message['status'] !== 'good') { ?>
- <p>
- <?php echo _i('help'); ?> <?php echo _t('update_last', $this->last_update_time); ?>
- </p>
+ <?php
+ if (!$this->check_last_hour &&
+ (empty($this->message) || $this->message['status'] !== 'good')) {
+ ?>
<p>
<a href="<?php echo _url('update', 'check'); ?>" class="btn"><?php echo _t('update_check'); ?></a>
</p>