From d83047b68b65f108e504e2395eb3293cb202c1a8 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 29 Oct 2014 10:42:03 +0000 Subject: [PATCH] Fix last part of MKWS-319. Add "message" parameter to documented list in targets template. Display both diagnostic code and the associated message. But display neither when there is no error (message empty). --- src/templates/targets.handlebars | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/templates/targets.handlebars b/src/templates/targets.handlebars index 132f87f..5bba8a2 100644 --- a/src/templates/targets.handlebars +++ b/src/templates/targets.handlebars @@ -4,7 +4,8 @@ Target detail data: id - target id, an opaque identifier hits - number of hits for this target, or "Error" if an error has occurred - diagnostic - diagnostic code returned by target, if any. May be numeric or human-readable + diagnostic - numeric diagnostic code returned by target; 0 if OK + message - message corresponding to diagnostic code, if any. records - number of record retrieved from target state - target state (Client_Idle, Client_Working, Client_Disconnected or Client_Error) }} @@ -24,7 +25,11 @@ data: {{{id}}} {{hits}} - {{diagnostic}} + + {{#if message}} + {{diagnostic}} ({{message}}) + {{/if}} + {{records}} {{state}} -- 1.7.10.4