git ssb

9+

cel / ssb-viewer



Commit 31974ef79d8bbeb12649ee247b9d973b746c9b5d

render shortened commit ids

Ev Bogue committed on 6/24/2017, 5:19:31 PM
Parent: d79e05a9ca08e3f87f30a3f3a5a53d3f985da1ed

Files changed

index.jschanged
index.jsView
@@ -618,9 +618,9 @@
618618 return ' created an issue'
619619 else if (c.type == 'git-update')
620620 return ' pushed to <a href="http://gitmx.com/'+ encodeURIComponent(c.repo) + '/">' + c.repo.substring(0, 10)+'...' + '</a><ul>' +
621621 (c.commits != undefined ?
622- c.commits.map(com => { return '<li>' + com.title + '</li>' }).join('') : "</ul>")
622 + c.commits.map(com => { return '<li><code>' + com.sha1.substring(0, 10) + '</code> "' + com.title + '"</li>' }).join('') : "</ul>")
623623 else if (c.type == 'ssb-dns')
624624 return ' updated dns'
625625 else if (c.type == 'pub')
626626 return ' connected to a pub'

Built with git-ssb-web