ref: refs/heads/master
commit 45f460aa8f08752fb102e419cbb07eec88c1c9d8
Author: Ladislav Slezak
Date: Thu Jul 23 08:34:45 2009 +0200
Status page - sort items by name
Sorting helps to display similar items together, like "cpu0 cpu1 load"
onstead of e.g. "cpu1 load cpu0"
---
plugins/status/app/views/status/index.html.erb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/plugins/status/app/views/status/index.html.erb b/plugins/status/app/views/status/index.html.erb
index ed63eb3..88dd5e2 100644
--- a/plugins/status/app/views/status/index.html.erb
+++ b/plugins/status/app/views/status/index.html.erb
@@ -2,7 +2,9 @@
<h1>Status</h1>
<% column = 1 %>
-<% @data_group.each do |key, map| %>
+<% groups = @data_group.keys.sort %>
+<% groups.each do |key| %>
+ <% map = @data_group[key]%>
<% if column != 1 %>
<br style='clear: both'>
<br>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org