diff --git a/app/assets/v2/css/bounty.css b/app/assets/v2/css/bounty.css index 6fa0e4e5cd4..6d60139212e 100644 --- a/app/assets/v2/css/bounty.css +++ b/app/assets/v2/css/bounty.css @@ -98,6 +98,20 @@ body { margin-bottom: 5px; } +.stat-card { + background: #ecf0fa; + border-radius: 4px; +} + +.stat-card h2, +.stat-card p { + color: #717171; +} + +.related-bounties { + list-style-type: none; +} + .box { padding: 14px; border: 1px solid #DBDBDB; @@ -153,10 +167,6 @@ body { color: #000000; } -/* #issue_description pre, code { - padding: 1em 0; -} */ - #bounty-info-row { margin-left: 1px; } diff --git a/app/assets/v2/js/user_popover.js b/app/assets/v2/js/user_popover.js index 103c046dfe2..ea11b93e68c 100644 --- a/app/assets/v2/js/user_popover.js +++ b/app/assets/v2/js/user_popover.js @@ -1,7 +1,7 @@ let popoverData = []; const renderPopOverData = data => { - console.log(data) + console.log(data); let contributed_to = data.contributed_to.map((_organization, index) => { if (index < 3) { return ` {
${data.handle}
- ${contributed_to.length ? 'Contributes to: ' + contributed_to : ''} +contributor
+contributor
success rate
+success rate
collected from ${data.stats.completed_bounties} bounties
++ collected from + ${data.stats.completed_bounties} bounties +
Bounties completed related to ${data.keywords.slice(0, 3).toString()}
- ${data.related_bounties ? - '+ No bounties completed related to ${data.keywords} +
` : - 'None
' + `+ Bounties completed related to ${data.keywords}: +
+ ` }