Testing ...
[mkws-moved-to-github.git] / examples / htdocs / templates.html
1 <html>
2   <head>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     <title>MKWS demo client</title>
5     <link rel="stylesheet" type="text/css" href="http://mkws.indexdata.com/mkws.css" />
6     <script type="text/javascript" src="http://mkws.indexdata.com/mkws-complete.js"></script>
7     <script id="mkwsTemplateSummary" type="text/x-handlebars-template">
8       <a href="#" id="{{_id}}" onclick="{{_onclick}}">
9         <b>{{md-title}}</b>
10       </a>
11       SHORT
12       {{#if md-title-remainder}}
13         <span>{{md-title-remainder}}</span>
14       {{/if}}
15       {{#if md-title-responsibility}}
16         <span><i>{{md-title-responsibility}}</i></span>
17       {{/if}}
18     </script>
19     <script id="mkwsTemplateRecord" type="text/x-handlebars-template">
20       LONG
21       <table>
22         <tr>
23           <th>Title</th>
24           <td>
25             {{md-title}}
26             {{#if md-title-remainder}}
27               ({{md-title-remainder}})
28             {{/if}}
29             {{#if md-title-responsibility}}
30               <i>{{md-title-responsibility}}</i>
31             {{/if}}
32           </td>
33         </tr>
34         {{#if md-date}}
35         <tr>
36           <th>Date</th>
37           <td>{{md-date}}</td>
38         </tr>
39         {{/if}}
40         {{#if md-author}}
41         <tr>
42           <th>Author</th>
43           <td>{{md-author}}</td>
44         </tr>
45         {{/if}}
46         {{#if md-electronic-url}}
47         <tr>
48           <th>URL</th>
49           <td>
50             {{#each md-electronic-url}}
51               <a href="{{this}}">{{this}}</a><br/>
52             {{/each}}
53           </td>
54         </tr>
55         {{/if}}
56         {{#if-any location having="md-subject"}}
57         <tr>
58           <th>Subject</th>
59           <td>
60             {{#first location having="md-subject"}}
61               {{#if md-subject}}
62                 {{md-subject}}
63               {{/if}}
64             {{/first}}
65           </td>
66         </tr>
67         {{/if-any}}
68         <tr>
69           <th>Locations</th>
70           <td>
71             {{#commaList location}}
72               {{attr "@name"}}{{/commaList}}
73           </td>
74         </tr>
75       </table>
76     </script>
77   </head>
78   <body>
79     <div id="mkwsSwitch"></div>
80     <div id="mkwsLang"></div>
81     <div id="mkwsSearch"></div>
82     <div id="mkwsResults"></div>
83     <div id="mkwsTargets"></div>
84     <div id="mkwsStat"></div>
85   </body>
86 </html>