Fix git update rendering

This commit is contained in:
Anders Rune Jensen
2017-06-23 21:33:44 +02:00
parent e042fb7933
commit ac8c79fc2f
+7 -6
View File
@@ -402,12 +402,13 @@ function render(opts, c) {
renderPost(opts, c))]; renderPost(opts, c))];
} }
else if (c.type == "git-update") { else if (c.type == "git-update") {
return h('span.status', var s = h('span.status');
"Did a git update " + s.innerHTML = "Did a git update " +
(c.repoName != undefined ? " in repo " + c.repoName : "") + (c.repoName != undefined ? " in repo " + c.repoName : "") +
'<br>' + '<br>' +
(c.commits != undefined ? (c.commits != undefined ?
c.commits.map(com => { return "-" +com.title; }).join('<br>') : "")); c.commits.map(com => { return "-" +com.title; }).join('<br>') : "");
return s;
} }
else if (c.type == "ssb-dns") { else if (c.type == "ssb-dns") {
return [h('span.status', 'Updated DNS'), renderDefault(c)]; return [h('span.status', 'Updated DNS'), renderDefault(c)];