Commit 3ce91e5b9b1e0229957cda5611ae0cd92d5c742d
Show digs count in user repos list
Charles Lehner committed on 4/16/2016, 3:35:54 PMParent: aa78d73908f6ead7c7fec135c3a61d82a11327ee
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -1002,11 +1002,19 @@ | ||
1002 | 1002 | return msg.value.author == feedId |
1003 | 1003 | }), |
1004 | 1004 | pull.take(20), |
1005 | 1005 | 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) { | |
1007 | 1010 | if (err) return cb(err) |
1008 | 1011 | 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>' + | |
1009 | 1017 | link([msg.key], repoName) + |
1010 | 1018 | '</section>') |
1011 | 1019 | }) |
1012 | 1020 | }, 8) |
Built with git-ssb-web