Resolve conflicts from merge of master into urlstate
[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 "Type"}}}</td>
18       <td>{{{mkws-translate "Hits"}}}</td>
19       <td>{{{mkws-translate "Diags"}}}</td>
20       <td>{{{mkws-translate "Records"}}}</td>
21       <td>{{{mkws-translate "State"}}}</td>
22       </td>
23     </tr>
24   </thead>
25   <tbody>
26   {{#each data}}
27     <tr>
28       <td>{{{name}}}</td>
29       <td>
30         {{#compare id 'matches' '^(solr-|lui.)'}}
31           <b title="Harvested, and stored locally" style="color:darkgreen">H</b>
32         {{else}}
33           <span title="Searched on the remote site" style="color:darkred">S</span>
34         {{/compare}}
35       </td>
36       <td>{{hits}}</td>
37       <td>
38        {{#if message}}
39          {{diagnostic}} ({{message}})
40        {{/if}}
41       </td>
42       <td>{{records}}</td>
43       <td>{{state}}</td>
44     </tr>
45   {{/each}}
46   </tbody>
47 </table>