ref: refs/heads/master
commit 76f47f726545c91523bde2121bbbbc293e7b83c8
Author: Ladislav Slezak
Date: Fri Jul 24 10:32:44 2009 +0200
Patch summary - add ", " separator
Put ", " separator between patch status messages
---
.../views/patch_updates/_patch_summary.html.erb | 16 +++++++---------
1 files changed, 7 insertions(+), 9 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 89a3b68..de7d9fb 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
@@ -14,22 +14,20 @@
<% end %>
- <% any_update = false %>
+ <% label = [] %>
<% if patch[:security] > 0 %>
- <span><%= _("Security Updates: #{patch[:security]} ") %></span>
- <% any_update = true %>
+ <% label << _("Security Updates: #{patch[:security]}") %>
<% end %>
<% if patch[:important] > 0 %>
- <span><%= _("Important Updates: #{patch[:important]} ") %></span>
- <% any_update = true %>
+ <% label << _("Important Updates: #{patch[:important]}") %>
<% end %>
<% if patch[:optional] > 0 %>
- <span><%= _("Optional Updates: #{patch[:optional]} ") %></span>
- <% any_update = true %>
+ <% label << _("Optional Updates: #{patch[:optional]}") %>
<% end %>
- <% unless any_update %>
- <span><%= _("Your system is up to date.") %></span>
+ <% if label.empty? %>
+ <% label << _("Your system is up to date.") %>
<% end %>
+ <span><%= label.join(", ") %></span>
<% end %>
<% end %>
</div>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org