Skip to content

Commit

Permalink
Merge branch 'master' into fix-#4267
Browse files Browse the repository at this point in the history
  • Loading branch information
danlipert authored Jun 5, 2019
2 parents fd64a02 + b17efb5 commit e905920
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/assets/v2/js/pages/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,5 @@ var redirectURL = function() {

document.location.href = url;
};

localStorage['onboarded_funder'] = true;
9 changes: 4 additions & 5 deletions app/retail/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ <h1>{% trans "Crowdfunding and freelance developers for your software projects"
</span>
</p>
<div class="buttons">
{% if is_new_funder %}
<a class="btn btn-gc-green mr-2 shadow-none font-weight-bold py-3" href="/onboard/funder/">{% trans "Become a Funder" %}</a>
{% else %}
<a class="btn btn-gc-green mr-2 shadow-none font-weight-bold py-3" href="{% url "quickstart" %}">{% trans "Fund an Issue" %}</a>
{% endif %}
<a id="fund-issue" class="btn btn-gc-green mr-2 shadow-none font-weight-bold py-3" href="{% url "quickstart" %}">{% trans "Fund an Issue" %}</a>
<a class="btn btn-outline-white ml-2 shadow-none font-weight-bold py-3" href="{% url "products" %}">{% trans "See Our Products" %}</a>
</div>
</div>
Expand Down Expand Up @@ -337,5 +333,8 @@ <h3 class="mt-3 mb-2">{{ article.title }}</h3>
$(this).html(videoTemplate(url));
});

if(!localStorage['onboarded_funder']) {
$('#fund-issue').attr('href', '/onboard/funder/');
}
</script>
</html>
5 changes: 0 additions & 5 deletions app/retail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ 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 and Bounty.objects.filter(bounty_owner_github_username=user).count() > 0:
is_new_funder = False

products = [
{
Expand Down Expand Up @@ -206,7 +202,6 @@ def index(request):
]

context = {
'is_new_funder': is_new_funder,
'products': products,
'know_us': know_us,
'press': press,
Expand Down

0 comments on commit e905920

Please sign in to comment.