share links in pledge_complete need to include url base
parent
32250157e3
commit
2b9b4a7331
|
@ -34,8 +34,8 @@
|
|||
|
||||
<div id="widgetcode">Copy/paste this into your site:<br /><textarea rows="7" cols="22"><iframe src="https://{{request.META.HTTP_HOST}}/api/widget/{{work.first_isbn_13}}/" width="152" height="325" frameborder="0"></iframe></textarea></div>
|
||||
<ul class="social menu pledge">
|
||||
<a href="https://www.facebook.com/sharer.php?u={% url work work.id|urlencode:"" %}"><li class="facebook first"><span>Facebook</span></li></a>
|
||||
<a href="https://twitter.com/intent/tweet?url={% url work work.id|urlencode:"" %}&text=I%20just%20pledged%20to%20unglue%20{{ work.title|urlencode }}%20at%20%40unglueit.%20Will%20you%20join%20me%3F"><li class="twitter"><span>Twitter</span></li></a>
|
||||
<a href="https://www.facebook.com/sharer.php?u=http://{{ domain }}{% url work work.id|urlencode:"" %}"><li class="facebook first"><span>Facebook</span></li></a>
|
||||
<a href="https://twitter.com/intent/tweet?url=http://{{ domain }}{% url work work.id|urlencode:"" %}&text=I%20just%20pledged%20to%20unglue%20{{ work.title|urlencode }}%20at%20%40unglueit.%20Will%20you%20join%20me%3F"><li class="twitter"><span>Twitter</span></li></a>
|
||||
<a href="{% url emailshare 'pledge' %}?next={% url work work.id|urlencode:"" %}"><li class="email"><span>Email</span></li></a>
|
||||
<a href="#" id="embed"><li class="embed"><span>Embed</span></li></a>
|
||||
</ul>
|
||||
|
|
|
@ -148,7 +148,7 @@ Needs to be written. What would you find helpful in a social media toolkit? <a
|
|||
|
||||
<p>Here are the standard rewards:</p>
|
||||
<ul class="terms">
|
||||
<li><em>Any level</em> — The unglued ebook delivered to your inbox</li>
|
||||
<li><em>Any level ($1 minimum)</em> — The unglued ebook delivered to your inbox</li>
|
||||
<li><em>$25</em> — Your username under "supporters" in the acknowledgements section</li>
|
||||
<li><em>$50</em> — Your name & profile link under "benefactors"</li>
|
||||
<li><em>$100</em> — Your name, profile link, & profile tagline under "bibliophiles"</li>
|
||||
|
|
|
@ -843,6 +843,7 @@ class PledgeCompleteView(TemplateView):
|
|||
context["faqmenu"] = "complete"
|
||||
context["works"] = works
|
||||
context["works2"] = works2
|
||||
context["domain"] = Site.objects.get_current().domain
|
||||
|
||||
# generate notices with same context used for user page
|
||||
notification.queue([transaction.user], "pledge_you_have_pledged", {'transaction': transaction, 'campaign': campaign, 'site': Site.objects.get_current(), 'work': work}, True)
|
||||
|
|
Loading…
Reference in New Issue