share links in pledge_complete need to include url base

pull/1/head
Andromeda Yelton 2012-05-14 13:42:34 -04:00
parent 32250157e3
commit 2b9b4a7331
3 changed files with 4 additions and 3 deletions

View File

@ -34,8 +34,8 @@
<div id="widgetcode">Copy/paste this into your site:<br /><textarea rows="7" cols="22">&lt;iframe src="https://{{request.META.HTTP_HOST}}/api/widget/{{work.first_isbn_13}}/" width="152" height="325" frameborder="0"&gt;&lt;/iframe&gt;</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:"" %}&amp;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:"" %}&amp;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>

View File

@ -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> &#8212; The unglued ebook delivered to your inbox</li>
<li><em>Any level ($1 minimum)</em> &#8212; The unglued ebook delivered to your inbox</li>
<li><em>$25</em> &#8212; Your username under "supporters" in the acknowledgements section</li>
<li><em>$50</em> &#8212; Your name &amp; profile link under "benefactors"</li>
<li><em>$100</em> &#8212; Your name, profile link, &amp; profile tagline under "bibliophiles"</li>

View File

@ -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)