aboutsummaryrefslogtreecommitdiff
path: root/app/views/update/index.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-17 20:28:04 +0100
committerGravatar GitHub <noreply@github.com> 2017-12-17 20:28:04 +0100
commit60f56539c3f30fd3f7ba4f2a3570f7029ac93e5f (patch)
tree1e78bfac7042dceb63898e2215db8fb0c1d7745d /app/views/update/index.phtml
parentceda55c75b158fc1cf4813fe0f258527754b9289 (diff)
parent0b1516af91792f86868689392f72ad4b6e32cdcf (diff)
Merge pull request #1720 from FreshRSS/dev
FreshRSS 1.9.0
Diffstat (limited to 'app/views/update/index.phtml')
-rw-r--r--app/views/update/index.phtml16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/views/update/index.phtml b/app/views/update/index.phtml
index da1bc7ef5..0599d5b0d 100644
--- a/app/views/update/index.phtml
+++ b/app/views/update/index.phtml
@@ -14,7 +14,21 @@
</p>
<?php if (!empty($this->message)) { ?>
- <p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>">
+ <?php
+ $class = 'alert-warn';
+ switch ($this->message['status']) {
+ case 'bad':
+ $class = 'alert-error';
+ break;
+ case 'latest':
+ $class = 'alert-success';
+ break;
+ default:
+ $class = 'alert-warn';
+ break;
+ }
+ ?>
+ <p class="alert <?php echo $class; ?>">
<span class="alert-head"><?php echo $this->message['title']; ?></span>
<?php echo $this->message['body']; ?>
</p>