Skip to content

Commit

Permalink
Merge pull request #1980 from Sefaria/update-donate-links-with-correc…
Browse files Browse the repository at this point in the history
…t-channel

Donation Links Updates
  • Loading branch information
relyks authored Jul 31, 2024
2 parents 3dafc32 + 2ec3f22 commit 2c96db4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions sites/sefaria/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@

# Redirects to Wikis etc
site_urlpatterns += [
url(r'^donate/mobile?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he?c_src=mobile-app')),
url(r'^donate/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he')),
url(r'^donate/mobile?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/english?c_src=App' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he?c_src=App')),
url(r'^donate/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/english' if x.interfaceLang == 'english' else 'https://donate.sefaria.org/he')),
url(r'^wiki/?$', lambda x: HttpResponseRedirect('https://github.com/Sefaria/Sefaria-Project/wiki')),
url(r'^developers/?$', lambda x: HttpResponseRedirect('https://github.com/Sefaria/Sefaria-Project/wiki#developers')),
url(r'^request-a-text/?$', lambda x: HttpResponseRedirect('https://goo.gl/forms/ru33ivawo7EllQxa2')),
Expand All @@ -90,7 +90,7 @@
url(r'^faq/?$', lambda x: HttpResponseRedirect('/collections/sefaria-faqs' if x.interfaceLang == 'english' else '/collections/%D7%A9%D7%90%D7%9C%D7%95%D7%AA-%D7%A0%D7%A4%D7%95%D7%A6%D7%95%D7%AA-%D7%91%D7%A1%D7%A4%D7%A8%D7%99%D7%90')),
url(r'^help/?$', lambda x: HttpResponseRedirect('/collections/sefaria-faqs' if x.interfaceLang == 'english' else '/collections/%D7%A9%D7%90%D7%9C%D7%95%D7%AA-%D7%A0%D7%A4%D7%95%D7%A6%D7%95%D7%AA-%D7%91%D7%A1%D7%A4%D7%A8%D7%99%D7%90')),
url(r'^gala/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/event/sefarias-10-year-anniversary-gala/e486954')),
url(r'^give/(?P<campaign_id>[a-zA-Z0-9]+)/?$', lambda x, campaign_id: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src={campaign_id}')),
url(r'^give/(?P<channel_source>[a-zA-Z0-9]+)/?$', lambda x, channel_source: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src={channel_source}')),
url(r'^give/?$', lambda x: HttpResponseRedirect(f'https://donate.sefaria.org/give/550774/#!/donation/checkout?c_src=mu')),
url(r'^giving/?$', lambda x: HttpResponseRedirect('https://donate.sefaria.org/give/524771/#!/donation/checkout')),
url(r'^jfn?$', lambda x: HttpResponseRedirect('https://www.sefaria.org/sheets/60494')),
Expand Down
18 changes: 9 additions & 9 deletions static/js/StaticPages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1437,8 +1437,8 @@ const DonatePage = () => (
heText=""
enButtonText="Donate Now"
heButtonText=""
enButtonUrl="https://donate.sefaria.org/"
heButtonUrl="https://donate.sefaria.org/he"
enButtonUrl="https://donate.sefaria.org/english?c_src=waystogive"
heButtonUrl="https://donate.sefaria.org/he?c_src=waystogive"
borderColor="#004E5F"
/>,
<FeatureBox
Expand All @@ -1448,8 +1448,8 @@ const DonatePage = () => (
heText=""
enButtonText="Join the Sustainers"
heButtonText=""
enButtonUrl="https://donate.sefaria.org/sustainers"
heButtonUrl="https://donate.sefaria.org/sustainershe"
enButtonUrl="https://donate.sefaria.org/sustainers?c_src=waystogive"
heButtonUrl="https://donate.sefaria.org/sustainershe?c_src=waystogive"
borderColor="#97B386"
/>,
<FeatureBox
Expand All @@ -1459,8 +1459,8 @@ const DonatePage = () => (
heText=""
enButtonText="Sponsor a Day of Learning"
heButtonText=""
enButtonUrl="https://donate.sefaria.org/sponsor"
heButtonUrl="https://donate.sefaria.org/sponsorhe"
enButtonUrl="https://donate.sefaria.org/sponsor?c_src=waystogive"
heButtonUrl="https://donate.sefaria.org/sponsorhe?c_src=waystogive"
borderColor="#4B71B7"
/>,
<FeatureBox
Expand All @@ -1470,7 +1470,7 @@ const DonatePage = () => (
heText=""
enButtonText="Join Now or Learn More"
heButtonText=""
enButtonUrl="https://donate.sefaria.org/campaign/giving-circles/c557214"
enButtonUrl="https://donate.sefaria.org/campaign/giving-circles/c557214?c_src=waystogive"
heButtonUrl=""
borderColor="#7C416F"
/>
Expand All @@ -1493,7 +1493,7 @@ const DonatePage = () => (
<HeaderWithColorAccentBlockAndText
enTitle="Donate Online"
heTitle=""
enText="<p>Make a donation by <strong>credit card, PayPal, GooglePay, ApplePay, Venmo, or bank transfer</strong> on our <a href='http://donate.sefaria.org/'>main donation page</a>.</p>"
enText="<p>Make a donation by <strong>credit card, PayPal, GooglePay, ApplePay, Venmo, or bank transfer</strong> on our <a href='http://donate.sefaria.org/english'>main donation page</a>.</p>"
heText=""
colorBar="#AB4E66"
/>,
Expand Down Expand Up @@ -1605,7 +1605,7 @@ const DonatePage = () => (
<Accordian
enTitle="Can I still donate from outside the USA?"
heTitle=""
enText="<p>Yes! Donors outside of the USA may make a gift online – via credit card, PayPal, GooglePay, ApplePay, Venmo, and bank transfer – <a href='https://donate.sefaria.org/'>on this page</a> On this page you can modify your currency. You can also <a href='https://sefaria.formstack.com/forms/wire_request'>make a wire transfer</a>.</p>"
enText="<p>Yes! Donors outside of the USA may make a gift online – via credit card, PayPal, GooglePay, ApplePay, Venmo, and bank transfer – <a href='https://donate.sefaria.org/english'>on this page</a> On this page you can modify your currency. You can also <a href='https://sefaria.formstack.com/forms/wire_request'>make a wire transfer</a>.</p>"
heText=""
colorBar="#7F85A9"
/>
Expand Down
2 changes: 1 addition & 1 deletion templates/static/the-sefaria-story.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>


<div class="single-button center int-en">
<a class="button big blue control-elem" href="https://donate.sefaria.org/" target="_blank">
<a class="button big blue control-elem" href="https://donate.sefaria.org/english" target="_blank">
Donate Now
</a>
</div>
Expand Down

0 comments on commit 2c96db4

Please sign in to comment.