j
k
j a
j l
ref: refs/heads/master commit afdaaaaa3ad85f67234e96379350eb9c07b970d1 Author: Stefan Schubert Date: Thu Jul 23 18:17:37 2009 +0200 do not show df/.../used --- plugins/status/app/views/status/edit.html.erb | 44 +++++++++++++------------ 1 files changed, 23 insertions(+), 21 deletions(-) diff --git a/plugins/status/app/views/status/edit.html.erb b/plugins/status/app/views/status/edit.html.erb index 73fb003..668d034 100644 --- a/plugins/status/app/views/status/edit.html.erb +++ b/plugins/status/app/views/status/edit.html.erb @@ -12,29 +12,31 @@ <% @data_group.each do |key, map| %> <% map.each do |graph_key, list_value| %> - <tr> - <% limit_key = "/#{key}/#{graph_key}" %> - <td><%= limit_key %></td> + <% if key != "df" || !graph_key.end_with?("used") %> + <tr> + <% limit_key = "/#{key}/#{graph_key}" %> + <td><%= limit_key %></td> - <% if @limits_list.has_key?(limit_key) %> - <td> - type="text" size="10" maxlength="15" value=<%= @limits_list[limit_key][0][1] %>> - </td> - <td> - id=<%= limit_key+"/maximum" %> value="true" - <%= @limits[limit_key]["maximum"] ? "checked" : "" %> - <%= "disabled=\"disabled\"" if disabled %> /> - </td> - <% else %> - <td> - type="text" size="10" maxlength="15" value=0> - </td> - <td> - id=<%= limit_key+"/maximum" %> value="true" - <%= "disabled=\"disabled\"" if disabled %> /> - </td> + <% if @limits_list.has_key?(limit_key) %> + <td> + type="text" size="10" maxlength="15" value=<%= @limits_list[limit_key][0][1] %>> + </td> + <td> + id=<%= limit_key+"/maximum" %> value="true" + <%= @limits[limit_key]["maximum"] ? "checked" : "" %> + <%= "disabled=\"disabled\"" if disabled %> /> + </td> + <% else %> + <td> + type="text" size="10" maxlength="15" value=0> + </td> + <td> + id=<%= limit_key+"/maximum" %> value="true" + <%= "disabled=\"disabled\"" if disabled %> /> + </td> + <% end %> + </tr> <% end %> - </tr> <% end %> <% end %> </table> -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
Back to the thread
Back to the list