git ssb

30+

cel / git-ssb-web



Commit 3ce91e5b9b1e0229957cda5611ae0cd92d5c742d

Show digs count in user repos list

Charles Lehner committed on 4/16/2016, 3:35:54 PM
Parent: aa78d73908f6ead7c7fec135c3a61d82a11327ee

Files changed

index.jschanged
index.jsView
@@ -1002,11 +1002,19 @@
10021002 return msg.value.author == feedId
10031003 }),
10041004 pull.take(20),
10051005 paramap(function (msg, cb) {
1006- getRepoName(about, feedId, msg.key, function (err, repoName) {
1006+ var done = multicb({ pluck: 1, spread: true })
1007+ getRepoName(about, feedId, msg.key, done())
1008+ getVotes(msg.key, done())
1009+ done(function (err, repoName, votes) {
10071010 if (err) return cb(err)
10081011 cb(null, '<section class="collapse">' +
1012+ '<span class="right-bar">' +
1013+ '<i>✌</i> ' +
1014+ link([msg.key, 'digs'], votes.upvotes, true,
1015+ ' title="' + req._t('Digs') + '"') +
1016+ '</span>' +
10091017 link([msg.key], repoName) +
10101018 '</section>')
10111019 })
10121020 }, 8)

Built with git-ssb-web