ref: refs/heads/network
commit 1aee3fbffe07295643875ccc80dac4ab29688c32
Author: Jiri Suchomel
Date: Fri Aug 21 16:01:22 2009 +0200
show status in a simple way
---
plugins/services/app/views/services/index.rhtml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/plugins/services/app/views/services/index.rhtml b/plugins/services/app/views/services/index.rhtml
index 3ff8399..5adbd9b 100644
--- a/plugins/services/app/views/services/index.rhtml
+++ b/plugins/services/app/views/services/index.rhtml
@@ -24,6 +24,16 @@ end
<ul>
<% @services.each do |service| %>
<li><b><%=h service.name %></b>
+ <%=
+ if service.status == 0
+ _("(running)")
+ elsif service.status.nil?
+ _("(unknown)")
+ else
+ _("(stopped: #{service.status})")
+ end
+ %>
+
<% [ "start", "stop" ].each do |cmd|
if @permissions[:execute] %>
<%=
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org