From: Mike Taylor Date: Wed, 29 Oct 2014 10:42:03 +0000 (+0000) Subject: Fix last part of MKWS-319. X-Git-Tag: 1.0.0~75^2~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=d83047b68b65f108e504e2395eb3293cb202c1a8;p=mkws-moved-to-github.git 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). --- 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}}