Provide default "Summary" template, rending the same as the old
authorMike Taylor <mike@indexdata.com>
Fri, 29 Nov 2013 17:25:49 +0000 (17:25 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 29 Nov 2013 17:25:49 +0000 (17:25 +0000)
hardwired code.

tools/htdocs/mkws.js

index 2a3f471..26d1fdb 100644 (file)
@@ -782,6 +782,18 @@ function defaultTemplate(name)
        </tr>\
       </table>\
 ';
+    } else if (name === "Summary") {
+       return '\
+      <a href="#" id="{{_id}}" onclick="{{_onclick}}">\
+       <b>{{md-title}}</b>\
+      </a>\
+      {{#if md-title-remainder}}\
+        <span>{{md-title-remainder}}</span>\
+      {{/if}}\
+      {{#if md-title-responsibility}}\
+       <span><i>{{md-title-responsibility}}</i></span>\
+      {{/if}}\
+';
     }
 
     var s = "There is no default '" + name +"' template!";