ref: refs/heads/master
commit 73a01dfadfcff115b276eec1e7e8e89fa2da668e
Author: Ladislav Slezak
Date: Wed Jul 22 15:32:50 2009 +0200
Patch summary - display green instead of yellow when all updates are installed
---
.../views/patch_updates/_patch_summary.html.erb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb b/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb
index 0d67f4d..7042585 100644
--- a/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb
+++ b/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb
@@ -1,14 +1,14 @@
<div class="status_patches">
<% unless patch %>
<img src="/images/button_warning.png" alt="warning icon" />
- <%= _("Error occur during loading patch information.") %>
+ <%= _("Error occured during loading patch information.") %>
<% else %>
<% link_to "patch_updates" do %>
<% if patch[:security]+patch[:important] > 0 %>
<img src="/images/button_critical.png" alt="System need update"/>
<div class="status-icon error"></div>
- <% elsif patch[:optional] %>
- <img src="/images/button_warning.png" alt="System contains any update" />
+ <% elsif patch[:optional] > 0%>
+ <img src="/images/button_warning.png" alt="Optional update available" />
<div class="status-icon warning"></div>
<% else %>
<img src="/images/button_ok.png" alt="No updates available"/>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org