Commit ac8c79fc2f80a89eb227579ffed0be3cf2dcab65
Fix git update rendering
Anders Rune Jensen committed on 6/23/2017, 7:33:44 PMParent: e042fb79339f605bb9bea4d8d2e0c4db84d8ec89
Files changed
render.js | changed |
render.js | |||
---|---|---|---|
@@ -401,14 +401,15 @@ | |||
401 | 401 … | (c.repoName != undefined ? " in repo " + c.repoName : ""), | |
402 | 402 … | renderPost(opts, c))]; | |
403 | 403 … | } | |
404 | 404 … | else if (c.type == "git-update") { | |
405 | - return h('span.status', | ||
406 | - "Did a git update " + | ||
407 | - (c.repoName != undefined ? " in repo " + c.repoName : "") + | ||
408 | - '<br>' + | ||
409 | - (c.commits != undefined ? | ||
410 | - c.commits.map(com => { return "-" +com.title; }).join('<br>') : "")); | ||
405 … | + var s = h('span.status'); | ||
406 … | + s.innerHTML = "Did a git update " + | ||
407 … | + (c.repoName != undefined ? " in repo " + c.repoName : "") + | ||
408 … | + '<br>' + | ||
409 … | + (c.commits != undefined ? | ||
410 … | + c.commits.map(com => { return "-" +com.title; }).join('<br>') : ""); | ||
411 … | + return s; | ||
411 | 412 … | } | |
412 | 413 … | else if (c.type == "ssb-dns") { | |
413 | 414 … | return [h('span.status', 'Updated DNS'), renderDefault(c)]; | |
414 | 415 … | } |
Built with git-ssb-web