Skip to content

Commit

Permalink
roundup email
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Jan 3, 2020
1 parent efcc5a8 commit edcad95
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions app/retail/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,8 @@ def render_start_work_applicant_expired(interest, bounty):
def render_new_bounty_roundup(to_email):
from dashboard.models import Bounty
from django.conf import settings
subject = "Fund Your Code & Code Your Fund"
new_kudos_pks = [7259, 7260, 7096]
subject = "The action starts *Monday 1/6/2020*!"
new_kudos_pks = [7315, 7275, 6188]
new_kudos_size_px = 150
if settings.DEBUG and False:
# for debugging email styles
Expand All @@ -938,39 +938,34 @@ def render_new_bounty_roundup(to_email):
email_style = (int(timezone.now().strftime("%V")) + offset) % 7

kudos_friday = f'''
<h3>Happy Kudos Friday!</h3>
<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>
'''

intro = f'''
<p>
Hey Gitcoiners,
</p>
<p>
Happy Friday! There are only 4 days left to go in the <a href="https://gitcoin.co/hackathon/global-communities">Global Communities</a> virtual hackathon, but still plenty of prizes up for grabs and opportunities to start work. We’ll be giving out our first “<a href="https://gitcoin.co/issue/gitcoinco/skunkworks/136/3759">Community Choice</a>” prize this time around (1500 DAI total!), so make sure you <a href="https://hackathons.gitcoin.co/global-communities">register</a> if you want to vote. If you’ve already registered, take another look through the <a href="https://gitcoin.co/hackathon/global-communities">prize explorer</a> to make sure you didn’t miss anything.
</p>
<p>
We’ve released two blog posts this hack highlighting <a href="https://gitcoin.co/blog/hashing-cashing-global-communities/">Hashing Systems</a> and <a href="https://gitcoin.co/blog/in-the-lab-with-consensys-global-communities/">ConsenSys Labs</a>. Dive in to learn more about the organizations and the bounties they are hosting. Both have ample opportunities to take home a nice chunk of change.
Happy New Years :) The Gitcoin team has been spending time with friends & family for the last two weeks, celebrating the end of the decade.
</p>
<p>
Finally, there are four new Gitcoin Quests this week for you to dig your teeth into: <a href="https://gitcoin.co/quests/76/uniswap-a-liquidity-provider-perspective">UNISWAP, A liquidity provider perspective</a>, <a href="https://gitcoin.co/quests/75/a-stellar-intro">A Stellar Intro</a>, <a href="https://gitcoin.co/quests/77/crypto-payment-app">Crypto Payment App</a>, and <a href="https://gitcoin.co/quests/78/hashing-systems-via-hashgraph">Hashing Systems via Hashgraph</a>. Earn some kudos while learning at the same time!
Next week we're back in action + looking to start the new year off strong with over $200k in OSS Funding for our community. The <a href="https://gitcoin.co/hackathon/take-back-the-web/?">Take Back the Web</a> Virtual Hackathon starts 1/6. And so does <a href="https://gitcoin.co/blog/gitcoin-grants-2020/">Gitcoin Grants Round 4</a>. Click <a href="https://gitcoin.co/hackathon/take-back-the-web/?">here</a> to checkout Take Back the Web, and click <a href="https://gitcoin.co/grants/">here</a> to checkout Gitcoin Grants.
</p>
{kudos_friday}
<h3>What else is new?</h3>
<ul>
<li>
<a href="https://codefund.io/">CodeFund</a> (Gitcoin’s ethical advertising network) is going through a new re-design on the administration views, advertiser dashboard, and publisher dashboard, as well as implementing a new strategy for ads rendered (which you can think as Codefund's base USP). They're looking to lock in subscriptions for 2020, so reach out if you’re interested in advertising to open source or blockchain developers! CodeFund is also starting a podcast network, so stay tuned for more info on that.
</li>
<li>
If you’re not familiar with CodeFund, join us on today’s livestream to hear the founder <a href="https://twitter.com/coderberry?lang=en">Eric Berry</a> discuss why he started CodeFund, how it got to where it is today, and what his mission is to support OSS going forward. <a href="https://http://gitcoin.co/livestream">Join at 2pm ET</a>.
Join us on todays Gitcoin Livestream to chat Web3 Business Models with Thibauld from Fairmint, Paul from Sablier, and more! <a href="https://http://gitcoin.co/livestream">Join at 2pm ET</a>.
</li>
</ul>
</p>
<p>
Back to shipping,
Back to BUIDLing,
</p>
'''
highlights = [{
Expand Down Expand Up @@ -1006,15 +1001,12 @@ def render_new_bounty_roundup(to_email):
}

bounties_spec = [{
'url': 'https://github.com/iamdefinitelyahuman/brownie/issues/262',
'primer': 'Brownie - Rebuild / Expand CLI Test Cases',
}, {
'url': 'https://github.com/3box/3box/issues/839',
'primer': 'Integrate 3Box And Gitcoin: Backup Gitcoin Profiles To 3Box - 1000 DAI Hackathon Bounty',
'url': 'https://github.com/gitcoinco/web/issues/5465',
'primer': 'Are you an illustrator? Design a Gitcoin bot + earn some DAI!',
}, {
'url': 'https://github.com/ConsenSys/Global-Community-Relay/issues/3',
'primer': 'UX Best-In-Show - 7 ETH Hackathon Bounty (Any project is valid!)',
}, ]
'url': 'https://github.com/gitcoinco/web/issues/4943',
'primer': 'Find an area where Gitcoins documentation is lacking + earn some ETH by fixing it',
}, ]


num_leadboard_items = 5
Expand Down

0 comments on commit edcad95

Please sign in to comment.