Skip to content

Commit

Permalink
Add title to table
Browse files Browse the repository at this point in the history
  • Loading branch information
jmforsythe committed Jul 22, 2023
1 parent b552052 commit b7ae8a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions static/javascript/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ function sql_repsonse_to_table(r) {
}

async function update_info_box_with_file_stats(path) {
const response = await get_file_stats(path)
//console.log(response)
set_info_content(sql_repsonse_to_table(response))
const h1 = document.createElement("h1")
h1.appendChild(document.createTextNode("Author emails with most changes to"))
const h2 = document.createElement("h2")
h2.appendChild(document.createTextNode(path))
const table = sql_repsonse_to_table(await get_file_stats(path))
set_info_content(h1, h2, table)
}

0 comments on commit b7ae8a9

Please sign in to comment.