Merge branch 'master' into templateallthemarkup
[mkws-moved-to-github.git] / src / mkws-widget-main.templates / Record.handlebars
1 {{!
2 Full record display.
3 }}
4 <table>
5   <tr>
6     <th>{{mkws-translate "Title"}}</th>
7     <td>
8       {{md-title}}
9       {{#if md-title-remainder}}
10         ({{md-title-remainder}})
11       {{/if}}
12       {{#if md-title-responsibility}}
13         <i>{{md-title-responsibility}}</i>
14       {{/if}}
15     </td>
16   </tr>
17   {{#if md-date}}
18   <tr>
19     <th>{{mkws-translate "Date"}}</th>
20     <td>{{md-date}}</td>
21   </tr>
22   {{/if}}
23   {{#if md-author}}
24   <tr>
25     <th>{{mkws-translate "Author"}}</th>
26     <td>{{md-author}}</td>
27   </tr>
28   {{/if}}
29   {{#if md-electronic-url}}
30   <tr>
31     <th>{{mkws-translate "Links"}}</th>
32     <td>
33       {{#each md-electronic-url}}
34         <a href="{{this}}">Link{{mkws-index1}}</a>
35       {{/each}}
36     </td>
37   </tr>
38   {{/if}}
39   {{#mkws-if-any location having="md-subject"}}
40   <tr>
41     <th>{{mkws-translate "Subject"}}</th>
42     <td>
43       {{#mkws-first location having="md-subject"}}
44         {{#if md-subject}}
45           {{#mkws-commaList md-subject}}
46             {{this}}{{/mkws-commaList}}
47         {{/if}}
48       {{/mkws-first}}
49     </td>
50   </tr>
51   {{/mkws-if-any}}
52   <tr>
53     <th>{{mkws-translate "Locations"}}</th>
54     <td>
55       {{#mkws-commaList location}}
56         {{mkws-attr "@name"}}{{/mkws-commaList}}
57     </td>
58   </tr>
59 </table>