From 2883bc9d2ba4d8f54280911b4f4e174594d1fde8 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Tue, 14 Oct 2014 14:55:06 -0400 Subject: [PATCH] Consolidate core templates in mkws.templates directory. MKWS-279 --- src/mkws-widget-main.templates/Done.handlebars | 7 --- src/mkws-widget-main.templates/Image.handlebars | 18 ------ src/mkws-widget-main.templates/Lang.handlebars | 19 ------- src/mkws-widget-main.templates/Navi.handlebars | 13 ----- src/mkws-widget-main.templates/Pager.handlebars | 46 --------------- src/mkws-widget-main.templates/Progress.handlebars | 11 ---- src/mkws-widget-main.templates/Ranking.handlebars | 42 -------------- src/mkws-widget-main.templates/Record.handlebars | 59 -------------------- src/mkws-widget-main.templates/Records.handlebars | 26 --------- src/mkws-widget-main.templates/Results.handlebars | 24 -------- src/mkws-widget-main.templates/Search.handlebars | 11 ---- src/mkws-widget-main.templates/Stat.handlebars | 9 --- src/mkws-widget-main.templates/Switch.handlebars | 9 --- src/mkws-widget-main.templates/Targets.handlebars | 33 ----------- .../Facet.handlebars | 17 ------ .../Termlists.handlebars | 11 ---- src/mkws.templates/Done.handlebars | 7 +++ src/mkws.templates/Facet.handlebars | 17 ++++++ src/mkws.templates/Image.handlebars | 18 ++++++ src/mkws.templates/Lang.handlebars | 19 +++++++ src/mkws.templates/Navi.handlebars | 13 +++++ src/mkws.templates/Pager.handlebars | 46 +++++++++++++++ src/mkws.templates/Progress.handlebars | 11 ++++ src/mkws.templates/Ranking.handlebars | 42 ++++++++++++++ src/mkws.templates/Record.handlebars | 59 ++++++++++++++++++++ src/mkws.templates/Records.handlebars | 26 +++++++++ src/mkws.templates/Results.handlebars | 24 ++++++++ src/mkws.templates/Search.handlebars | 11 ++++ src/mkws.templates/Stat.handlebars | 9 +++ src/mkws.templates/Switch.handlebars | 9 +++ src/mkws.templates/Targets.handlebars | 33 +++++++++++ src/mkws.templates/Termlists.handlebars | 11 ++++ 32 files changed, 355 insertions(+), 355 deletions(-) delete mode 100644 src/mkws-widget-main.templates/Done.handlebars delete mode 100644 src/mkws-widget-main.templates/Image.handlebars delete mode 100644 src/mkws-widget-main.templates/Lang.handlebars delete mode 100644 src/mkws-widget-main.templates/Navi.handlebars delete mode 100644 src/mkws-widget-main.templates/Pager.handlebars delete mode 100644 src/mkws-widget-main.templates/Progress.handlebars delete mode 100644 src/mkws-widget-main.templates/Ranking.handlebars delete mode 100644 src/mkws-widget-main.templates/Record.handlebars delete mode 100644 src/mkws-widget-main.templates/Records.handlebars delete mode 100644 src/mkws-widget-main.templates/Results.handlebars delete mode 100644 src/mkws-widget-main.templates/Search.handlebars delete mode 100644 src/mkws-widget-main.templates/Stat.handlebars delete mode 100644 src/mkws-widget-main.templates/Switch.handlebars delete mode 100644 src/mkws-widget-main.templates/Targets.handlebars delete mode 100644 src/mkws-widget-termlists.templates/Facet.handlebars delete mode 100644 src/mkws-widget-termlists.templates/Termlists.handlebars create mode 100644 src/mkws.templates/Done.handlebars create mode 100644 src/mkws.templates/Facet.handlebars create mode 100644 src/mkws.templates/Image.handlebars create mode 100644 src/mkws.templates/Lang.handlebars create mode 100644 src/mkws.templates/Navi.handlebars create mode 100644 src/mkws.templates/Pager.handlebars create mode 100644 src/mkws.templates/Progress.handlebars create mode 100644 src/mkws.templates/Ranking.handlebars create mode 100644 src/mkws.templates/Record.handlebars create mode 100644 src/mkws.templates/Records.handlebars create mode 100644 src/mkws.templates/Results.handlebars create mode 100644 src/mkws.templates/Search.handlebars create mode 100644 src/mkws.templates/Stat.handlebars create mode 100644 src/mkws.templates/Switch.handlebars create mode 100644 src/mkws.templates/Targets.handlebars create mode 100644 src/mkws.templates/Termlists.handlebars diff --git a/src/mkws-widget-main.templates/Done.handlebars b/src/mkws-widget-main.templates/Done.handlebars deleted file mode 100644 index 59a0b4f..0000000 --- a/src/mkws-widget-main.templates/Done.handlebars +++ /dev/null @@ -1,7 +0,0 @@ -{{! -Displayed on search completion - -count - number of results found -}} -{{{mkws-translate "Search complete: found"}}} {{count}} {{{mkws-translate "records"}}} - diff --git a/src/mkws-widget-main.templates/Image.handlebars b/src/mkws-widget-main.templates/Image.handlebars deleted file mode 100644 index abee587..0000000 --- a/src/mkws-widget-main.templates/Image.handlebars +++ /dev/null @@ -1,18 +0,0 @@ -{{! -Records presented as images. - -hits: - containerClass - class attribute for same - detailLinkId - id for the element triggering detail display - detailClick - a click event handler for details - renderedDetails - active record details rendered from the Record template - md-* - metadata fields passed through from backend -}} -{{#each hits}} - - {{#mkws-first md-thumburl}} - {{../md-title}} - {{/mkws-first}} -
-
-{{/each}} diff --git a/src/mkws-widget-main.templates/Lang.handlebars b/src/mkws-widget-main.templates/Lang.handlebars deleted file mode 100644 index 26ee6da..0000000 --- a/src/mkws-widget-main.templates/Lang.handlebars +++ /dev/null @@ -1,19 +0,0 @@ -{{! -Language selection widget - -languages - code - two character language identifier - selected - exists for the current language - url - url to switch to this language -}} -{{#each languages}} - {{~#if selected~}} - {{code}} - {{~else~}} - {{code}} - {{~/if~}} - {{#unless last}} - | - {{/unless}} -{{/each}} - diff --git a/src/mkws-widget-main.templates/Navi.handlebars b/src/mkws-widget-main.templates/Navi.handlebars deleted file mode 100644 index 7f3c554..0000000 --- a/src/mkws-widget-main.templates/Navi.handlebars +++ /dev/null @@ -1,13 +0,0 @@ -{{! -Facet breadcrumbs -- filters on the current search - -filters - facet - name of facet being limited - value - limit to this value - click - handler script to remove limit -}} -{{#each filters}} - {{{mkws-translate facet}}}: {{value}} - {{#unless @last}}|{{/unless}} -{{/each}} - diff --git a/src/mkws-widget-main.templates/Pager.handlebars b/src/mkws-widget-main.templates/Pager.handlebars deleted file mode 100644 index 3f098e6..0000000 --- a/src/mkws-widget-main.templates/Pager.handlebars +++ /dev/null @@ -1,46 +0,0 @@ -{{! -Pager - -nextClick - handler script for "next" button, only available if there is a next page -prevClick - handler script for "previous" button if there is a previous page -moreNext - indicates there are more pages following those displayed -morePrev - indicates there are more pages preceding -first - first record displayed -last - last record displayed -count - number of records available -found - number of records found -pages: - number - page number - click - script to go to this page unless it is the current one -}} -
- {{mkws-translate "Displaying"}}: - {{first}} {{mkws-translate "to"}} {{last}} - {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}}) -
- -
- {{#if prevClick}} - << {{{mkws-translate "Prev"}}} | - {{else}} - << {{{mkws-translate "Prev"}}} | - {{/if}} - - {{#if morePrev}}...{{/if}} - - {{#each pages}} - {{#if click}} - {{number}} - {{else}} - {{number}} - {{/if}} - {{/each}} - - {{#if moreNext}}...{{/if}} - - {{#if nextClick}} - | {{{mkws-translate "Next"}}} >> - {{else}} - | {{{mkws-translate "Next"}}} >> - {{/if}} -
diff --git a/src/mkws-widget-main.templates/Progress.handlebars b/src/mkws-widget-main.templates/Progress.handlebars deleted file mode 100644 index 1b08a2c..0000000 --- a/src/mkws-widget-main.templates/Progress.handlebars +++ /dev/null @@ -1,11 +0,0 @@ -{{! -Progress - -done - number of targets complete -waiting - number of targets waiting -}} -{{#mkws-repeat done}}█{{/mkws-repeat}} -{{~#if waiting~}} -{{#mkws-repeat waiting}}█{{/mkws-repeat}} -{{~/if~}} - diff --git a/src/mkws-widget-main.templates/Ranking.handlebars b/src/mkws-widget-main.templates/Ranking.handlebars deleted file mode 100644 index 1c823bb..0000000 --- a/src/mkws-widget-main.templates/Ranking.handlebars +++ /dev/null @@ -1,42 +0,0 @@ -{{! -Ranking -- widget to select sort ordering and number of records to display - -team - team for this widget -showSort -showPerPage -sort - key - machine readable value for this sort option - label - text to display for this sort option - selected - exists if this sort is selected -perPage - perPage - a number of records per page that can be selected - selected - exists if this number is the current selection -}} -
- {{~#if showSort~}} - {{{mkws-translate "Sort by"}}} - - {{~/if~}} - {{~#if showPerPage}} - {{{mkws-translate "and show"}}} - - {{{mkws-translate "per page"}}} - {{~/if~}} -
- diff --git a/src/mkws-widget-main.templates/Record.handlebars b/src/mkws-widget-main.templates/Record.handlebars deleted file mode 100644 index f8bf951..0000000 --- a/src/mkws-widget-main.templates/Record.handlebars +++ /dev/null @@ -1,59 +0,0 @@ -{{! -Full record display. -}} - - - - - - {{#if md-date}} - - - - - {{/if}} - {{#if md-author}} - - - - - {{/if}} - {{#if md-electronic-url}} - - - - - {{/if}} - {{#mkws-if-any location having="md-subject"}} - - - - - {{/mkws-if-any}} - - - - -
{{mkws-translate "Title"}} - {{md-title}} - {{#if md-title-remainder}} - ({{md-title-remainder}}) - {{/if}} - {{#if md-title-responsibility}} - {{md-title-responsibility}} - {{/if}} -
{{mkws-translate "Date"}}{{md-date}}
{{mkws-translate "Author"}}{{md-author}}
{{mkws-translate "Links"}} - {{#each md-electronic-url}} - Link{{mkws-index1}} - {{/each}} -
{{mkws-translate "Subject"}} - {{#mkws-first location having="md-subject"}} - {{#if md-subject}} - {{#mkws-commaList md-subject}} - {{this}}{{/mkws-commaList}} - {{/if}} - {{/mkws-first}} -
{{mkws-translate "Locations"}} - {{#mkws-commaList location}} - {{mkws-attr "@name"}}{{/mkws-commaList}} -
diff --git a/src/mkws-widget-main.templates/Records.handlebars b/src/mkws-widget-main.templates/Records.handlebars deleted file mode 100644 index 03ba9a2..0000000 --- a/src/mkws-widget-main.templates/Records.handlebars +++ /dev/null @@ -1,26 +0,0 @@ -{{! -Records from a search. - -hits: - containerClass - class attribute for same - detailLinkId - id for the element triggering detail display - detailClick - a click event handler for details - renderedDetails - active record details rendered from the Record template - md-* - metadata fields passed through from backend -}} -{{#each hits}} -
- - {{md-title}} - - {{#if md-title-remainder}} - {{md-title-remainder}} - {{/if}} - {{#if md-title-responsibility}} - {{md-title-responsibility}} - {{/if}} - {{#if renderedDetails}} - {{{renderedDetails}}} - {{/if}} -
-{{/each}} diff --git a/src/mkws-widget-main.templates/Results.handlebars b/src/mkws-widget-main.templates/Results.handlebars deleted file mode 100644 index f0d405c..0000000 --- a/src/mkws-widget-main.templates/Results.handlebars +++ /dev/null @@ -1,24 +0,0 @@ -{{! -Results -- compound widget to display search results - -team - team for this widget -}} - - - - - - - - -
-
-
-
-
-
-
-
-
-
- diff --git a/src/mkws-widget-main.templates/Search.handlebars b/src/mkws-widget-main.templates/Search.handlebars deleted file mode 100644 index 5530013..0000000 --- a/src/mkws-widget-main.templates/Search.handlebars +++ /dev/null @@ -1,11 +0,0 @@ -{{! -Search form - -team - MKWS team -queryWidth - configured width for search box -}} -
- - -
- diff --git a/src/mkws-widget-main.templates/Stat.handlebars b/src/mkws-widget-main.templates/Stat.handlebars deleted file mode 100644 index d8ae997..0000000 --- a/src/mkws-widget-main.templates/Stat.handlebars +++ /dev/null @@ -1,9 +0,0 @@ -{{! -Search statistics - -activeclients - number of targets currently searching -clients - total targets for this search -records - number of records returned and available -hits - number of hits across all targets -}} - -- {{{mkws-translate "Active clients"}}} : {{activeclients}}/{{clients}} -- {{{mkws-translate "Retrieved records"}}} : {{records}}/{{hits}} diff --git a/src/mkws-widget-main.templates/Switch.handlebars b/src/mkws-widget-main.templates/Switch.handlebars deleted file mode 100644 index 2b8e29c..0000000 --- a/src/mkws-widget-main.templates/Switch.handlebars +++ /dev/null @@ -1,9 +0,0 @@ -{{! -Switch between record and target view - -recordClick - handler to switch to record view -targetClick - handler to switch to target view -}} -{{{mkws-translate "Records"}}} -| -{{{mkws-translate "Targets"}}} diff --git a/src/mkws-widget-main.templates/Targets.handlebars b/src/mkws-widget-main.templates/Targets.handlebars deleted file mode 100644 index 99ed801..0000000 --- a/src/mkws-widget-main.templates/Targets.handlebars +++ /dev/null @@ -1,33 +0,0 @@ -{{! -Target detail - -data: - id - target id - hits - number of hits for this target - diagnostic - - records - - state - target state -}} - - - - - - - - - - - - - {{#each data}} - - - - - - - - {{/each}} - -
{{{mkws-translate "Target ID"}}}{{{mkws-translate "Hits"}}}{{{mkws-translate "Diags"}}}{{{mkws-translate "Records"}}}{{{mkws-translate "State"}}}
{{{id}}}{{hits}}{{diagnostic}}{{records}}{{hits}}
diff --git a/src/mkws-widget-termlists.templates/Facet.handlebars b/src/mkws-widget-termlists.templates/Facet.handlebars deleted file mode 100644 index 621c9c1..0000000 --- a/src/mkws-widget-termlists.templates/Facet.handlebars +++ /dev/null @@ -1,17 +0,0 @@ -{{! -A facet in the search. - -name - facet identifier, typically English and lowercase -caption - caption for this facet -terms: - term - term name - count - count of items matching in the current search for this team - linkdata - attributes to add to the term element including an onclick handler -}} - -
{{caption}}
-{{#each terms}} -
- {{term}} {{count}} -
-{{/each}} diff --git a/src/mkws-widget-termlists.templates/Termlists.handlebars b/src/mkws-widget-termlists.templates/Termlists.handlebars deleted file mode 100644 index 7c6f3b8..0000000 --- a/src/mkws-widget-termlists.templates/Termlists.handlebars +++ /dev/null @@ -1,11 +0,0 @@ -{{! -Termlists, a container of all configured facets. - -team - the current team -facets - array of facet names -}} - -
Termlists
-{{#each facets}} -
-{{/each}} diff --git a/src/mkws.templates/Done.handlebars b/src/mkws.templates/Done.handlebars new file mode 100644 index 0000000..59a0b4f --- /dev/null +++ b/src/mkws.templates/Done.handlebars @@ -0,0 +1,7 @@ +{{! +Displayed on search completion + +count - number of results found +}} +{{{mkws-translate "Search complete: found"}}} {{count}} {{{mkws-translate "records"}}} + diff --git a/src/mkws.templates/Facet.handlebars b/src/mkws.templates/Facet.handlebars new file mode 100644 index 0000000..621c9c1 --- /dev/null +++ b/src/mkws.templates/Facet.handlebars @@ -0,0 +1,17 @@ +{{! +A facet in the search. + +name - facet identifier, typically English and lowercase +caption - caption for this facet +terms: + term - term name + count - count of items matching in the current search for this team + linkdata - attributes to add to the term element including an onclick handler +}} + +
{{caption}}
+{{#each terms}} +
+ {{term}} {{count}} +
+{{/each}} diff --git a/src/mkws.templates/Image.handlebars b/src/mkws.templates/Image.handlebars new file mode 100644 index 0000000..abee587 --- /dev/null +++ b/src/mkws.templates/Image.handlebars @@ -0,0 +1,18 @@ +{{! +Records presented as images. + +hits: + containerClass - class attribute for same + detailLinkId - id for the element triggering detail display + detailClick - a click event handler for details + renderedDetails - active record details rendered from the Record template + md-* - metadata fields passed through from backend +}} +{{#each hits}} + + {{#mkws-first md-thumburl}} + {{../md-title}} + {{/mkws-first}} +
+
+{{/each}} diff --git a/src/mkws.templates/Lang.handlebars b/src/mkws.templates/Lang.handlebars new file mode 100644 index 0000000..26ee6da --- /dev/null +++ b/src/mkws.templates/Lang.handlebars @@ -0,0 +1,19 @@ +{{! +Language selection widget + +languages + code - two character language identifier + selected - exists for the current language + url - url to switch to this language +}} +{{#each languages}} + {{~#if selected~}} + {{code}} + {{~else~}} + {{code}} + {{~/if~}} + {{#unless last}} + | + {{/unless}} +{{/each}} + diff --git a/src/mkws.templates/Navi.handlebars b/src/mkws.templates/Navi.handlebars new file mode 100644 index 0000000..7f3c554 --- /dev/null +++ b/src/mkws.templates/Navi.handlebars @@ -0,0 +1,13 @@ +{{! +Facet breadcrumbs -- filters on the current search + +filters + facet - name of facet being limited + value - limit to this value + click - handler script to remove limit +}} +{{#each filters}} + {{{mkws-translate facet}}}: {{value}} + {{#unless @last}}|{{/unless}} +{{/each}} + diff --git a/src/mkws.templates/Pager.handlebars b/src/mkws.templates/Pager.handlebars new file mode 100644 index 0000000..3f098e6 --- /dev/null +++ b/src/mkws.templates/Pager.handlebars @@ -0,0 +1,46 @@ +{{! +Pager + +nextClick - handler script for "next" button, only available if there is a next page +prevClick - handler script for "previous" button if there is a previous page +moreNext - indicates there are more pages following those displayed +morePrev - indicates there are more pages preceding +first - first record displayed +last - last record displayed +count - number of records available +found - number of records found +pages: + number - page number + click - script to go to this page unless it is the current one +}} +
+ {{mkws-translate "Displaying"}}: + {{first}} {{mkws-translate "to"}} {{last}} + {{mkws-translate "of"}} {{count}} ({{{mkws-translate "found"}}}: {{found}}) +
+ +
+ {{#if prevClick}} + << {{{mkws-translate "Prev"}}} | + {{else}} + << {{{mkws-translate "Prev"}}} | + {{/if}} + + {{#if morePrev}}...{{/if}} + + {{#each pages}} + {{#if click}} + {{number}} + {{else}} + {{number}} + {{/if}} + {{/each}} + + {{#if moreNext}}...{{/if}} + + {{#if nextClick}} + | {{{mkws-translate "Next"}}} >> + {{else}} + | {{{mkws-translate "Next"}}} >> + {{/if}} +
diff --git a/src/mkws.templates/Progress.handlebars b/src/mkws.templates/Progress.handlebars new file mode 100644 index 0000000..1b08a2c --- /dev/null +++ b/src/mkws.templates/Progress.handlebars @@ -0,0 +1,11 @@ +{{! +Progress + +done - number of targets complete +waiting - number of targets waiting +}} +{{#mkws-repeat done}}█{{/mkws-repeat}} +{{~#if waiting~}} +{{#mkws-repeat waiting}}█{{/mkws-repeat}} +{{~/if~}} + diff --git a/src/mkws.templates/Ranking.handlebars b/src/mkws.templates/Ranking.handlebars new file mode 100644 index 0000000..1c823bb --- /dev/null +++ b/src/mkws.templates/Ranking.handlebars @@ -0,0 +1,42 @@ +{{! +Ranking -- widget to select sort ordering and number of records to display + +team - team for this widget +showSort +showPerPage +sort + key - machine readable value for this sort option + label - text to display for this sort option + selected - exists if this sort is selected +perPage + perPage - a number of records per page that can be selected + selected - exists if this number is the current selection +}} +
+ {{~#if showSort~}} + {{{mkws-translate "Sort by"}}} + + {{~/if~}} + {{~#if showPerPage}} + {{{mkws-translate "and show"}}} + + {{{mkws-translate "per page"}}} + {{~/if~}} +
+ diff --git a/src/mkws.templates/Record.handlebars b/src/mkws.templates/Record.handlebars new file mode 100644 index 0000000..f8bf951 --- /dev/null +++ b/src/mkws.templates/Record.handlebars @@ -0,0 +1,59 @@ +{{! +Full record display. +}} + + + + + + {{#if md-date}} + + + + + {{/if}} + {{#if md-author}} + + + + + {{/if}} + {{#if md-electronic-url}} + + + + + {{/if}} + {{#mkws-if-any location having="md-subject"}} + + + + + {{/mkws-if-any}} + + + + +
{{mkws-translate "Title"}} + {{md-title}} + {{#if md-title-remainder}} + ({{md-title-remainder}}) + {{/if}} + {{#if md-title-responsibility}} + {{md-title-responsibility}} + {{/if}} +
{{mkws-translate "Date"}}{{md-date}}
{{mkws-translate "Author"}}{{md-author}}
{{mkws-translate "Links"}} + {{#each md-electronic-url}} + Link{{mkws-index1}} + {{/each}} +
{{mkws-translate "Subject"}} + {{#mkws-first location having="md-subject"}} + {{#if md-subject}} + {{#mkws-commaList md-subject}} + {{this}}{{/mkws-commaList}} + {{/if}} + {{/mkws-first}} +
{{mkws-translate "Locations"}} + {{#mkws-commaList location}} + {{mkws-attr "@name"}}{{/mkws-commaList}} +
diff --git a/src/mkws.templates/Records.handlebars b/src/mkws.templates/Records.handlebars new file mode 100644 index 0000000..03ba9a2 --- /dev/null +++ b/src/mkws.templates/Records.handlebars @@ -0,0 +1,26 @@ +{{! +Records from a search. + +hits: + containerClass - class attribute for same + detailLinkId - id for the element triggering detail display + detailClick - a click event handler for details + renderedDetails - active record details rendered from the Record template + md-* - metadata fields passed through from backend +}} +{{#each hits}} +
+ + {{md-title}} + + {{#if md-title-remainder}} + {{md-title-remainder}} + {{/if}} + {{#if md-title-responsibility}} + {{md-title-responsibility}} + {{/if}} + {{#if renderedDetails}} + {{{renderedDetails}}} + {{/if}} +
+{{/each}} diff --git a/src/mkws.templates/Results.handlebars b/src/mkws.templates/Results.handlebars new file mode 100644 index 0000000..f0d405c --- /dev/null +++ b/src/mkws.templates/Results.handlebars @@ -0,0 +1,24 @@ +{{! +Results -- compound widget to display search results + +team - team for this widget +}} + + + + + + + + +
+
+
+
+
+
+
+
+
+
+ diff --git a/src/mkws.templates/Search.handlebars b/src/mkws.templates/Search.handlebars new file mode 100644 index 0000000..5530013 --- /dev/null +++ b/src/mkws.templates/Search.handlebars @@ -0,0 +1,11 @@ +{{! +Search form + +team - MKWS team +queryWidth - configured width for search box +}} +
+ + +
+ diff --git a/src/mkws.templates/Stat.handlebars b/src/mkws.templates/Stat.handlebars new file mode 100644 index 0000000..d8ae997 --- /dev/null +++ b/src/mkws.templates/Stat.handlebars @@ -0,0 +1,9 @@ +{{! +Search statistics + +activeclients - number of targets currently searching +clients - total targets for this search +records - number of records returned and available +hits - number of hits across all targets +}} + -- {{{mkws-translate "Active clients"}}} : {{activeclients}}/{{clients}} -- {{{mkws-translate "Retrieved records"}}} : {{records}}/{{hits}} diff --git a/src/mkws.templates/Switch.handlebars b/src/mkws.templates/Switch.handlebars new file mode 100644 index 0000000..2b8e29c --- /dev/null +++ b/src/mkws.templates/Switch.handlebars @@ -0,0 +1,9 @@ +{{! +Switch between record and target view + +recordClick - handler to switch to record view +targetClick - handler to switch to target view +}} +{{{mkws-translate "Records"}}} +| +{{{mkws-translate "Targets"}}} diff --git a/src/mkws.templates/Targets.handlebars b/src/mkws.templates/Targets.handlebars new file mode 100644 index 0000000..99ed801 --- /dev/null +++ b/src/mkws.templates/Targets.handlebars @@ -0,0 +1,33 @@ +{{! +Target detail + +data: + id - target id + hits - number of hits for this target + diagnostic - + records - + state - target state +}} + + + + + + + + + + + + + {{#each data}} + + + + + + + + {{/each}} + +
{{{mkws-translate "Target ID"}}}{{{mkws-translate "Hits"}}}{{{mkws-translate "Diags"}}}{{{mkws-translate "Records"}}}{{{mkws-translate "State"}}}
{{{id}}}{{hits}}{{diagnostic}}{{records}}{{hits}}
diff --git a/src/mkws.templates/Termlists.handlebars b/src/mkws.templates/Termlists.handlebars new file mode 100644 index 0000000..7c6f3b8 --- /dev/null +++ b/src/mkws.templates/Termlists.handlebars @@ -0,0 +1,11 @@ +{{! +Termlists, a container of all configured facets. + +team - the current team +facets - array of facet names +}} + +
Termlists
+{{#each facets}} +
+{{/each}} -- 1.7.10.4