Part of MKWS-322: renamed the 'termlists' template 'facets'
authorMike Taylor <mike@indexdata.com>
Thu, 30 Oct 2014 17:05:49 +0000 (17:05 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 30 Oct 2014 17:05:49 +0000 (17:05 +0000)
src/mkws-widget-termlists.js
src/templates/facets.handlebars [new file with mode: 0644]
src/templates/termlists.handlebars [deleted file]

index 21810c6..575a655 100644 (file)
@@ -6,7 +6,7 @@ mkws.registerWidgetType('termlists', function() {
     that.node.addClass("active");
   });
 
-  var template = team.loadTemplate(this.config.template || "termlists");
+  var template = team.loadTemplate(this.config.template || "facets");
   this.node.html(template({
     team: team.name(),
     facets: this.config.facets
diff --git a/src/templates/facets.handlebars b/src/templates/facets.handlebars
new file mode 100644 (file)
index 0000000..66caa83
--- /dev/null
@@ -0,0 +1,11 @@
+{{!
+Termlists, a container of all configured facets.
+
+team - the current team
+facets - array of facet names
+}}
+
+<div class="mkws-termlists-title mkwsTermlistsTitle">Termlists</div>
+{{#each facets}}
+  <div class="mkws-facet mkwsFacet mkws-team-{{../team}}" data-mkws-facet="{{this}}"></div>
+{{/each}}
diff --git a/src/templates/termlists.handlebars b/src/templates/termlists.handlebars
deleted file mode 100644 (file)
index 66caa83..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{{!
-Termlists, a container of all configured facets.
-
-team - the current team
-facets - array of facet names
-}}
-
-<div class="mkws-termlists-title mkwsTermlistsTitle">Termlists</div>
-{{#each facets}}
-  <div class="mkws-facet mkwsFacet mkws-team-{{../team}}" data-mkws-facet="{{this}}"></div>
-{{/each}}