ref: refs/heads/network
commit 2a86bcfc6ea487fb2f4f296e04f7b6bbc5f44cdb
Author: Stefan Schubert
Date: Wed Sep 16 16:52:06 2009 +0200
displaying update button if a patch is available only
---
.../views/patch_updates/_patch_summary.html.erb | 2 +-
1 files changed, 1 insertions(+), 1 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 35fcb62..49b2c15 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
@@ -29,7 +29,7 @@
<% end %>
<span><%= label.join(", ") %></span>
<% end %>
- <% if not label.empty? %>
+ <% if patch[:security] > 0 or patch[:important] > 0 or patch[:optional] > 0%>
<%= button_to_remote "Update All", :update =>"status_patches", :url => { :controller => :patch_updates, :action => :start_install_all}, :confirm => _("Updating all. Are you sure?") %>
<% end %>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org