Merge pull request #884 from alanbernstein/remove-webui-rowlabel

Remove row and column labels in webUI
This commit is contained in:
alanbernstein 2017-10-25 11:56:57 -05:00 committed by GitHub
commit d4de1abea1

View file

@ -344,12 +344,11 @@ function render_status(status) {
tbody = document.createElement("tbody")
table.appendChild(tbody)
var caption = document.createElement("caption")
caption.innerHTML = indexes[n]["Name"] + " (Column Label: " + indexes[n]["Meta"]["ColumnLabel"] + ")"
caption.innerHTML = indexes[n]["Name"]
table.appendChild(caption)
var header = document.createElement('tr')
markup = `<th>Name</th>
<th>Row Label</th>
<th>Cache Type</th>
<th>Cache Size</th>`
header.innerHTML = markup
@ -360,7 +359,6 @@ function render_status(status) {
for(var m=0; m<frames.length; m++) {
var row = document.createElement("tr")
row.innerHTML = `<td>${frames[m]["Name"]}</td>
<td>${frames[m]["Meta"]["RowLabel"]}</td>
<td>${frames[m]["Meta"]["CacheType"]}</td>
<td>${frames[m]["Meta"]["CacheSize"]}</td>`
tbody.appendChild(row)