mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Paywall on signup.
This commit is contained in:
parent
9c5c210568
commit
38bd6be246
4 changed files with 62 additions and 4 deletions
|
@ -173,7 +173,7 @@ def reader_callback(request):
|
|||
|
||||
if request.user.is_authenticated():
|
||||
return render_to_response('social/social_connect.xhtml', {}, context_instance=RequestContext(request))
|
||||
|
||||
|
||||
return HttpResponseRedirect(reverse('import-signup'))
|
||||
|
||||
@json.json_view
|
||||
|
@ -221,7 +221,10 @@ def import_signup(request):
|
|||
user_token.user = new_user
|
||||
user_token.save()
|
||||
login_user(request, new_user)
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
url = "https://%s%s" % (Site.objects.get_current().domain,
|
||||
reverse('stripe-form'))
|
||||
return HttpResponseRedirect(url)
|
||||
# return HttpResponseRedirect(reverse('index'))
|
||||
else:
|
||||
logging.user(request, "~BR~FW ***> Can't find user token during import/signup. Re-authenticating...")
|
||||
return HttpResponseRedirect(reverse('google-reader-authorize'))
|
||||
|
|
|
@ -159,7 +159,9 @@ def signup(request):
|
|||
new_user = form.save()
|
||||
login_user(request, new_user)
|
||||
logging.user(new_user, "~FG~SB~BBNEW SIGNUP~FW")
|
||||
return HttpResponseRedirect(reverse('index'))
|
||||
url = "https://%s%s" % (Site.objects.get_current().domain,
|
||||
reverse('stripe-form'))
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
return index(request)
|
||||
|
||||
|
|
|
@ -9097,4 +9097,15 @@ form.opml_import_form input {
|
|||
}
|
||||
.NB-static-form .NB-errors {
|
||||
margin-left: 200px;
|
||||
}
|
||||
|
||||
.NB-static-alert {
|
||||
margin: 24px 0 0 0;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
color: #294A28;
|
||||
}
|
||||
.NB-static-feedchooser .NB-feedchooser-premium-bullets li {
|
||||
background-color: rgba(255, 255, 255, .4);
|
||||
}
|
|
@ -15,7 +15,49 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<div class="NB-static-form-wrapper">
|
||||
<div class="NB-static-alert">
|
||||
Due to overwhelming demand, free accounts are temporarily suspended.
|
||||
<br />
|
||||
By going premium you get full access to NewsBlur.
|
||||
</div>
|
||||
|
||||
<div class="NB-static-form-wrapper" style="overflow:hidden">
|
||||
<div class="NB-modal-feedchooser NB-static-feedchooser NB-feedchooser-type" style=" margin: 0 10% 0 0;
|
||||
width: 360px;
|
||||
float: right;">
|
||||
<div class="NB-feedchooser-info">
|
||||
<div class="NB-feedchooser-info-type">
|
||||
<span class="NB-feedchooser-subtitle-type-prefix">Super-Mega</span> Premium Account
|
||||
</div>
|
||||
</div>
|
||||
<ul class="NB-feedchooser-premium-bullets">
|
||||
<li class="NB-1">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>Enable every site by going premium
|
||||
</li>
|
||||
<li class="NB-2">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>Sites updated up to 10x more often
|
||||
</li>
|
||||
<li class="NB-3">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>River of News (reading by folder)
|
||||
</li>
|
||||
<li class="NB-4">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>Privacy options for your blurblog
|
||||
</li>
|
||||
<li class="NB-5">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>Text view conveniently extracts the story
|
||||
</li>
|
||||
<li class="NB-6">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>You feed my poor, hungry dog for <span class="NB-feedchooser-hungry-dog">12 days</span><img src="/media//img/reader/shiloh.jpg" class="NB-feedchooser-premium-poor-hungry-dog">
|
||||
</li>
|
||||
<li class="NB-7">
|
||||
<div class="NB-feedchooser-premium-bullet-image"></div>Choose how much you would like to pay
|
||||
<div style="color: #490567">
|
||||
The only difference is happiness
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="NB-static-form NB-stripe-form">
|
||||
<label>Username</label>
|
||||
<div class="NB-stripe-username">{{ user.username }}</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue