samples/consul-ui/js/utils.js in consul-templaterb-1.23.0 vs samples/consul-ui/js/utils.js in consul-templaterb-1.24.0
- old
+ new
@@ -120,25 +120,9 @@
htmlAddress.className = 'instance-addr lookup';
htmlAddress.appendChild(document.createTextNode(nodeaddr));
return htmlAddress;
}
-function nodeMetaGenerator(nodeMetaTags) {
- var metaTags = document.createElement('div');
- metaTags.setAttribute('title', 'Node Meta')
- metaTags.className = 'node-meta';
- for (var tagKey in nodeMetaTags) {
- if (!nodeMetaTags[tagKey]) {
- continue;
- }
- var metaTag = document.createElement('span');
- metaTag.setAttribute('class', 'badge badge-primary mx-1 lookup');
- metaTag.appendChild(document.createTextNode(tagKey + ':' + nodeMetaTags[tagKey]));
- metaTags.appendChild(metaTag);
- }
- return metaTags;
-}
-
function tagsGenerator(instanceTags) {
var tags = document.createElement('div');
tags.className = 'instance-tags';
tags.setAttribute('title', 'Tags of Service');
\ No newline at end of file