20 lines
1.2 KiB
HTML
20 lines
1.2 KiB
HTML
{% extends 'base.html' %}{% load slx_brand %}
|
|
{% block title %}{{ chapter.title }} · SLUMP X LAND{% endblock %}
|
|
{% block content %}
|
|
<main class="section article theme-shop">
|
|
<p class="kicker">Chapter {{ chapter.number }} · Paid chapter</p><h1>{{ chapter.title|slx_brand }}</h1>
|
|
{% if chapter.cover %}<img class="book-cover" src="{{ chapter.cover.url }}" alt="">{% endif %}
|
|
{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}
|
|
<p><strong>${{ chapter.price_usd|floatformat:2 }} USD</strong> · One-time purchase</p>
|
|
{% if paypal_ready %}
|
|
{% if user.is_authenticated %}
|
|
<form method="post" action="{% url 'paypal-start' chapter.number %}">{% csrf_token %}
|
|
<button class="cta" type="submit">Continue to PayPal →</button></form>
|
|
<p>PayPal will show the payment methods available to you.</p>
|
|
{% else %}<a class="cta" href="{% url 'fan-login' %}?next={% url 'chapter' chapter.number %}">Sign in to buy</a>
|
|
<p>New to SLX? <a href="{% url 'fan-signup' %}">Create a reader account</a>.</p>{% endif %}
|
|
{% else %}<p>Online checkout is currently unavailable.</p>{% endif %}
|
|
<p><a href="{% url 'chapter-discussion' chapter.number %}">Fan discussion</a> · <a href="{% url 'chapters' %}">All chapters</a></p>
|
|
</main>
|
|
{% endblock %}
|