Mailinglist Archive: yast-commit (1983 mails)

< Previous Next >
[yast-commit] <web-client> dmacvicar_log_viewer : show status in a simple way
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 24 Aug 2009 15:37:55 +0200
  • Message-id: <E1Mlmr6-00063t-Dy@xxxxxxxxxxxxxxxx>
ref: refs/heads/dmacvicar_log_viewer
commit 6b37d2a9d8fc52ce5d0fd6f32e4cfba4f1e2671a
Author: Jiri Suchomel <jsuchome@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages