Extend targets-template comment to note that we have the "name" field.
[mkws-moved-to-github.git] / src / templates / targets.handlebars
1 {{!
2 Target detail
3
4 data:
5   name - human-readable display-name of the target
6   id - target id, an opaque identifier
7   hits - number of hits for this target, or "Error" if an error has occurred
8   diagnostic - numeric diagnostic code returned by target; 0 if OK
9   message - message corresponding to diagnostic code, if any.
10   records - number of record retrieved from target
11   state - target state (Client_Idle, Client_Working, Client_Disconnected or Client_Error)
12 }}
13 <table>
14   <thead>
15     <tr>
16       <td>{{{mkws-translate "Target ID"}}}</td>
17       <td>{{{mkws-translate "Hits"}}}</td>
18       <td>{{{mkws-translate "Diags"}}}</td>
19       <td>{{{mkws-translate "Records"}}}</td>
20       <td>{{{mkws-translate "State"}}}</td>
21       </td>
22     </tr>
23   </thead>
24   <tbody>
25   {{#each data}}
26     <tr>
27       <td>{{{name}}}</td>
28       <td>{{hits}}</td>
29       <td>
30        {{#if message}}
31          {{diagnostic}} ({{message}})
32        {{/if}}
33       </td>
34       <td>{{records}}</td>
35       <td>{{state}}</td>
36     </tr>
37   {{/each}}
38   </tbody>
39 </table>