diff --git a/app/retail/templates/home/index.html b/app/retail/templates/home/index.html index 02566572152..b0fa7687802 100644 --- a/app/retail/templates/home/index.html +++ b/app/retail/templates/home/index.html @@ -37,23 +37,30 @@

{% trans "Crowdfunding and freelance developers for your software projects" %}

{% blocktrans %} - Builders/Project Managers:
- Leverage our global, on-demand workforce. Find expert freelance developers to design, test, code, and build your project teams today. Save time via direct Github integration. Crowdfund for your open source startup or project to increase your budget and bring in more developers. + Builders/Project Managers:
+ Leverage our global, on-demand workforce. Find expert freelance developers to design,\ + test, code, and build your project teams today. Save time via direct Github integration. + Crowdfund for your open source startup or project to increase your budget and bring in + more developers. + {% endblocktrans %} - Fund an Issue/Project - Grants + Fund an Issue/Project + Grants - {% endblocktrans %}

{% blocktrans %} Coders/Software Developers:
Get paid in crypto for freelance jobs, building features, and solving bug bounties! Work with top open source projects and get paid out fast. {% endblocktrans %}
- {% trans "Bug Bounties" %} + {% trans "Bug Bounties" %}

- {% trans "Fund an Issue" %} + {% if is_new_funder %} + {% trans "Become a Funder" %} + {% else %} + {% trans "Fund an Issue" %} + {% endif %} {% trans "See Our Products" %}
diff --git a/app/retail/templates/shared/top_nav.html b/app/retail/templates/shared/top_nav.html index 22ce3e53ece..aa6dfd04816 100644 --- a/app/retail/templates/shared/top_nav.html +++ b/app/retail/templates/shared/top_nav.html @@ -42,7 +42,7 @@ - + diff --git a/app/retail/views.py b/app/retail/views.py index 29e5305c1da..dc595d5a631 100644 --- a/app/retail/views.py +++ b/app/retail/views.py @@ -36,7 +36,7 @@ from app.utils import get_default_network from cacheops import cached_as, cached_view, cached_view_as -from dashboard.models import Activity, Profile +from dashboard.models import Activity, Bounty, Profile from dashboard.notifications import amount_usdt_open_work, open_bounties from economy.models import Token from marketing.mails import new_funding_limit_increase_request, new_token_request @@ -66,6 +66,15 @@ def get_activities(tech_stack=None, num_activities=15): def index(request): + + user = request.user.profile if request.user.is_authenticated else None + is_new_funder = True + + if user: + funded_bounties = Bounty.objects.filter(bounty_owner_github_username=user).count() + if funded_bounties > 0: + is_new_funder = False + products = [ { 'group' : 'grow_oss', @@ -199,6 +208,7 @@ def index(request): ] context = { + 'is_new_funder': is_new_funder, 'products': products, 'know_us': know_us, 'press': press, @@ -556,7 +566,7 @@ def contributor_bounties(request, tech_stack): { 'link': "/design", 'text': "Design"}, { 'link': "/html", 'text': "HTML"}, { 'link': "/ruby", 'text': "Ruby"}, - { 'link': "/css", 'text': "CSS"}, + { 'link': "/css", 'text': "CSS"}, ] }