Skip to content

Commit

Permalink
Merge pull request #6526 from sebastiantf/center-weekly-email-kudos
Browse files Browse the repository at this point in the history
Make kudos center aligned. Follow-up to #6438
  • Loading branch information
thelostone-mc authored Apr 29, 2020
2 parents f7515d1 + 15fe38c commit e5de488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/retail/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,11 +1018,13 @@ def render_new_bounty_roundup(to_email):
email_style = (int(timezone.now().strftime("%V")) + offset) % 7

kudos_friday = f'''
<div style="text-align: center">
<h3>New Kudos This Month</h3>
</p>
<p>
''' + "".join([f"<a href='https://gitcoin.co/kudos/{pk}/'><img style='max-width: {new_kudos_size_px}px; display: inline; padding-right: 10px; vertical-align:middle ' src='https://gitcoin.co/dynamic/kudos/{pk}/'></a>" for pk in new_kudos_pks]) + '''
</p>
</div>
'''

intro = args.body.replace('KUDOS_INPUT_HERE', kudos_friday)
Expand Down

0 comments on commit e5de488

Please sign in to comment.