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))];
}
else if (c.type == "git-update") {
return h('span.status',
"Did a git update " +
(c.repoName != undefined ? " in repo " + c.repoName : "") +
'<br>' +
(c.commits != undefined ?
c.commits.map(com => { return "-" +com.title; }).join('<br>') : ""));
var s = h('span.status');
s.innerHTML = "Did a git update " +
(c.repoName != undefined ? " in repo " + c.repoName : "") +
'<br>' +
(c.commits != undefined ?
c.commits.map(com => { return "-" +com.title; }).join('<br>') : "");
return s;
}
else if (c.type == "ssb-dns") {
return [h('span.status', 'Updated DNS'), renderDefault(c)];