Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/funder + /contributor redirects #4168

Merged
merged 5 commits into from
Apr 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@
path('hackathon-list/', dashboard.views.get_hackathons, name='get_hackathons'),

# action URLs
url(r'^funder', retail.views.funder_bounties_redirect, name='funder_bounties_redirect'),
re_path( r'^contributor/?(?P<tech_stack>.*)/?', retail.views.contributor_bounties_redirect, name='contributor_bounties_redirect'),
url(r'^bounties/funder', retail.views.funder_bounties, name='funder_bounties'),
re_path(
r'^bounties/contributor/?(?P<tech_stack>.*)/?', retail.views.contributor_bounties, name='contributor_bounties'
),
re_path(r'^bounties/contributor/?(?P<tech_stack>.*)/?', retail.views.contributor_bounties, name='contributor_bounties'),
re_path(r'^bounty/quickstart/?', dashboard.views.quickstart, name='quickstart'),
url(r'^bounty/new/?', dashboard.views.new_bounty, name='new_bounty'),
re_path(r'^bounty/change/(?P<bounty_id>.*)?', dashboard.views.change_bounty, name='change_bounty'),
Expand Down
1 change: 1 addition & 0 deletions app/assets/v2/css/leaderboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

.leaderboard .winner img {
max-height: 10rem;
border-radius: 50%;
}

.leaderboard .leaderboard_entry img {
Expand Down
6 changes: 3 additions & 3 deletions app/retail/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<div class="row">
<div class="col-12 col-md-8 col-xl-6 pl-lg-5">
<div class="mx-4 mx-lg-5 px-lg-5 pb-lg-5">
<h1>{% trans "A new way to work and grow open source" %}</h1>
<p class="font-title">{% blocktrans %}Gitcoin lets you get paid for working on open source software. Build new skills,
make new relationships, earn kudos, and get paid for the work you already love.{% endblocktrans %}
<h1>{% trans "Open Source Dev Tools, Bug Bounties & Community Resources" %}</h1>
<p class="font-title">{% blocktrans %}Gitcoin lets you get paid for working on open source software.
Build new skills, make new relationships, earn kudos, and get paid for the work you already love.{% endblocktrans %}
</p>
<div class="buttons">
<a class="btn btn-gc-green mr-2" href="{% url "new_bounty" %}">{% trans "Fund an Issue" %}</a>
Expand Down
6 changes: 6 additions & 0 deletions app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ def subscribe(request):
}
return TemplateResponse(request, 'pricing/subscribe.html', context)

def funder_bounties_redirect(request):
return redirect(funder_bounties)


def funder_bounties(request):
Expand Down Expand Up @@ -400,6 +402,10 @@ def funder_bounties(request):
return TemplateResponse(request, 'bounties/funder.html', context)


def contributor_bounties_redirect(request, tech_stack):
return redirect(contributor_bounties, tech_stack= '/'+ tech_stack)


def contributor_bounties(request, tech_stack):

onboard_slides = [
Expand Down