aboutsummaryrefslogtreecommitdiff
path: root/app/views/update/index.phtml
diff options
context:
space:
mode:
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>