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

Save Avatar takes you to Profile Page #1559

merged 1 commit into from Jun 27, 2018
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

@@ -233,6 +233,8 @@ var redirectURL = function() {
url = '/explorer?q=' + words.join(',');
} else if (flow === 'funder') {
url = '/funding/new';
} else if (flow === 'profile') {
url = '/profile';

localStorage['referrer'] = 'onboard';
@@ -39,7 +39,7 @@
{% endif %}
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{% url "onboard" "contributor" %}?steps=avatar">
<a class="dropdown-item" href="{% url "onboard" "profile" %}?steps=avatar">
<i class="fas fa-user-edit"></i>
{% trans "Build Avatar" %}
@@ -522,12 +522,14 @@ def send_tip_2(request):

def onboard(request, flow):
"""Handle displaying the first time user experience flow."""
if flow not in ['funder', 'contributor']:
if flow not in ['funder', 'contributor', 'profile']:
raise Http404
elif flow == 'funder':
onboard_steps = ['github', 'metamask', 'avatar']
elif flow == 'contributor':
onboard_steps = ['github', 'metamask', 'avatar', 'skills']
elif flow == 'profile':
onboard_steps = ['avatar']

steps = []
if request.GET:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.