Skip to content

Commit

Permalink
Merge pull request #785 from thelostone-mc/explorer
Browse files Browse the repository at this point in the history
explorer: updated label for issues with status done
  • Loading branch information
mbeacom authored Apr 4, 2018
2 parents 364f352 + 697eeea commit de00083
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/assets/v2/js/pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,15 @@ var refreshBounties = function() {
result['title'] = result['title'] ? result['title'] : result['github_url'];
var timeLeft = timeDifference(new Date(result['expires_date']), new Date(), true);

result['p'] = ((result['experience_level'] ? result['experience_level'] : 'Unknown Experience Level') + ' • ' + (is_expired ? ' Expired' : ('Expires in ' + timeLeft)));
result['p'] = ((result['experience_level'] ? result['experience_level'] : 'Unknown Experience Level') + ' • ');

if (result['status'] === 'done')
result['p'] += 'Done';
else if (is_expired)
result['p'] += 'Expired';
else
result['p'] += ('Expires in ' + timeLeft);

result['watch'] = 'Watch';

// render the template
Expand Down

0 comments on commit de00083

Please sign in to comment.