aboutsummaryrefslogtreecommitdiff
path: root/app/views/update
diff options
context:
space:
mode:
authorGravatar Kevin Papst <kevinpapst@users.noreply.github.com> 2017-12-02 13:45:26 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-12-02 13:45:26 +0100
commit8abfe1cf28b9ca4b1b53073dbb1ec24953855777 (patch)
tree4aa5ce1004af6aad2b0c519f8cb736ff34317c37 /app/views/update
parentb5626391553b57d85cca87869c27ffdbdb9a0b04 (diff)
Update panel shows latest version message as success (#1701)
show latest version message as success, FIXES #1586
Diffstat (limited to 'app/views/update')
-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>