git ssb

9+

cel / ssb-viewer



Commit ac8c79fc2f80a89eb227579ffed0be3cf2dcab65

Fix git update rendering

Anders Rune Jensen committed on 6/23/2017, 7:33:44 PM
Parent: e042fb79339f605bb9bea4d8d2e0c4db84d8ec89

Files changed

render.jschanged
render.jsView
@@ -401,14 +401,15 @@
401401 (c.repoName != undefined ? " in repo " + c.repoName : ""),
402402 renderPost(opts, c))];
403403 }
404404 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;
411412 }
412413 else if (c.type == "ssb-dns") {
413414 return [h('span.status', 'Updated DNS'), renderDefault(c)];
414415 }

Built with git-ssb-web