From e5aaa2ab600e031d9a4ab5eb989ba60e19375bf0 Mon Sep 17 00:00:00 2001 From: Islam Amer Date: Thu, 15 Dec 2011 19:25:27 +0200 Subject: [PATCH] fix the template for process with nil root expression --- lib/ruote-kit/views/process.html.haml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ruote-kit/views/process.html.haml b/lib/ruote-kit/views/process.html.haml index 7eb4f7c4..f604c590 100644 --- a/lib/ruote-kit/views/process.html.haml +++ b/lib/ruote-kit/views/process.html.haml @@ -55,12 +55,14 @@ %td launch time %td - = Time.parse(@process.launched_time).localtime.strftime('%Y/%m/%d %H:%M:%S') + - if @process.launched_time + = Time.parse(@process.launched_time).localtime.strftime('%Y/%m/%d %H:%M:%S') %tr %td last active %td - = Time.parse(@process.last_active).localtime.strftime('%Y/%m/%d %H:%M:%S') + - if @process.last_active + = Time.parse(@process.last_active).localtime.strftime('%Y/%m/%d %H:%M:%S') %tr %td root exp state