regluit/frontend/templates/kindle_change_successful.html

43 lines
1.6 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'email_change/base.html' %}
2016-05-11 14:41:50 +00:00
2013-05-31 19:19:58 +00:00
{% with request.user.profile.kindle_email as kindle_email %}
{% block title %}Kindle email change successful{% endblock %}
{% block extra_js %}
{{ block.super }}
<script>
var $j = jQuery.noConflict();
$j(document).ready(function() {
var work_id = {{ work.id }};
if(work_id) {
$j.post('/send_to_kindle/' + work_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>{% if ok_email %}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.
2015-04-28 03:24:02 +00:00
{% else %}<span class="yikes">{{ request.user.profile.kindle_email }} is probably not the right email for your Kindle; most Kindles use an @kindle.com email address. You can <a href="{% url 'kindle_config' %}">change it</a>, but we'll try sending it anyway.</span> {% endif %}</p>
{% if work %}
<p>
2015-04-28 03:24:02 +00:00
We're now emailing you the ebook you wanted, <i><a href="{% url 'work' work.id %}">{{ work.title }}</a></i>...
</p>
<span id="replace_me"><img src="{{ STATIC_URL }}images/loading.gif"></span>
{% else %}
<p>
2015-04-28 03:24:02 +00:00
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 %}