2013-05-31 19:19:58 +00:00
|
|
|
{% extends "email_change/base.html" %}
|
|
|
|
{% with request.user.profile.kindle_email as kindle_email %}
|
|
|
|
|
|
|
|
{% block title %}Kindle email change successful{% endblock %}
|
|
|
|
|
2013-06-24 17:53:28 +00:00
|
|
|
{% block extra_js %}
|
|
|
|
{{ block.super }}
|
|
|
|
<script>
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
|
|
|
|
$j(document).ready(function() {
|
|
|
|
var kindle_ebook_id = {{ kindle_ebook_id }};
|
|
|
|
if(kindle_ebook_id) {
|
|
|
|
$j.post('/send_to_kindle/' + kindle_ebook_id + '/1/', function(data) {
|
|
|
|
$j('#replace_me').html(data);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|
2013-05-31 19:19:58 +00:00
|
|
|
|
|
|
|
{% block ce_content %}
|
|
|
|
<h2>Kindle email change successful</h2>
|
|
|
|
<div id="content-main">
|
|
|
|
<p>Hooray! We can now send unglued ebooks to you at {{ request.user.profile.kindle_email }}.</p>
|
2013-06-24 17:53:28 +00:00
|
|
|
{% if kindle_ebook_id %}
|
|
|
|
<p>
|
2013-06-25 20:01:08 +00:00
|
|
|
We're emailing you the ebook you wanted, <i><a href="{% url work work.id %}">{{ work.title }}</a></i>...
|
2013-06-24 17:53:28 +00:00
|
|
|
</p>
|
|
|
|
<span id="replace_me"><img src="{{ STATIC_URL }}images/loading.gif"></span>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
Why not <a href="{% url unglued_list '' %}">start downloading free books</a>?
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2013-05-31 19:19:58 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% endwith %}
|