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() {
|
2013-09-06 02:54:11 +00:00
|
|
|
var work_id = {{ work.id }};
|
|
|
|
if(work_id) {
|
|
|
|
$j.post('/send_to_kindle/' + work_id + '/1/', function(data) {
|
2013-06-24 17:53:28 +00:00
|
|
|
$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">
|
2014-02-08 23:32:11 +00:00
|
|
|
<p>Hooray! We can now send most unglued ebooks to you at {{ request.user.profile.kindle_email }}. Some ebooks are too big for us to send, though.</p>
|
2013-09-06 02:54:11 +00:00
|
|
|
{% if work %}
|
2013-06-24 17:53:28 +00:00
|
|
|
<p>
|
2014-02-08 23:32:11 +00:00
|
|
|
We're now 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 %}
|