ref: refs/heads/dmacvicar_log_viewer commit 6b37d2a9d8fc52ce5d0fd6f32e4cfba4f1e2671a Author: Jiri Suchomel <jsuchome@suse.cz> 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