Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -0,0 +1,49 @@
|
||||
{% extends "base.html" %}{% load static slx_brand %}{% block title %}{{ chapter.title }} · SLUMP X LAND{% endblock %}
|
||||
{% block scripts %}<link rel="stylesheet" href="{% static 'manaa-reader.css' %}"><script defer src="{% static 'manaa-reader.js' %}"></script>{% endblock %}
|
||||
{% block content %}<main class="section reader manaa-reader">
|
||||
{% if frames %}
|
||||
<section class="reading-deck" data-reader data-direction="{{ chapter.reader_direction }}" aria-label="ManaA reader">
|
||||
<div class="reading-heading"><h1><span class="kicker">#{{ chapter.number|stringformat:"03d" }}</span> {{ chapter.title|slx_brand }}</h1>{% include "view-eye.html" with views=chapter.public_views %}<a href="#discussion">Discussion ↓</a></div>
|
||||
<div class="reading-tools" data-reader-tools hidden>
|
||||
<button type="button" class="fan-button reading-fullscreen" data-fullscreen aria-pressed="false">⛶ Fullscreen</button>
|
||||
<div class="reading-move" aria-label="Page navigation">
|
||||
<button type="button" class="fan-button" data-step="{% if chapter.reader_direction == 'rtl' %}1{% else %}-1{% endif %}" aria-label="{% if chapter.reader_direction == 'rtl' %}Next pages{% else %}Previous pages{% endif %}">←</button>
|
||||
<span data-page-output aria-live="polite"></span>
|
||||
<button type="button" class="fan-button" data-step="{% if chapter.reader_direction == 'rtl' %}-1{% else %}1{% endif %}" aria-label="{% if chapter.reader_direction == 'rtl' %}Previous pages{% else %}Next pages{% endif %}">→</button>
|
||||
</div>
|
||||
<label class="reading-view">View <select data-reader-mode>
|
||||
<option value="double" selected>Double page</option><option value="single">Single page</option><option value="scroll">Scroll</option>
|
||||
</select></label>
|
||||
<div class="reading-zoom" aria-label="Zoom controls">
|
||||
<button type="button" class="fan-button" data-zoom="-1" aria-label="Zoom out">−</button>
|
||||
<button type="button" class="fan-button" data-zoom="0" aria-label="Reset zoom to fit">Fit</button>
|
||||
<button type="button" class="fan-button" data-zoom="1" aria-label="Zoom in">+</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reading-window" data-reader-window tabindex="0" aria-label="Chapter art. Swipe, drag horizontally, or use the arrow keys to turn fitted pages. Scroll or swipe to explore zoomed artwork.">
|
||||
<div class="reading-strip">
|
||||
{% for frame in frames %}
|
||||
<div class="reading-frame frame-{{ frame.kind }}" data-frame="{{ frame.kind }}">
|
||||
{% for page in frame.pages %}
|
||||
<figure data-page data-number="{{ page.number }}" id="page-{{ page.number }}" class="reactable-page">
|
||||
<img src="{{ page.art.url }}" alt="{% if frame.kind == 'cover' %}Chapter cover{% elif frame.kind == 'spread' %}Double spread, page {{ page.number }}{% else %}Page {{ page.number }}{% endif %}" {% if not forloop.first or not forloop.parentloop.first %}loading="lazy"{% endif %} decoding="async">
|
||||
<figcaption>{% if frame.kind == 'cover' %}Cover{% elif frame.kind == 'spread' %}Double spread · Page {{ page.number }}{% else %}Page {{ page.number }}{% endif %}
|
||||
{% include 'reaction-strip.html' with group=page.reactions reaction_for='React to chapter page art' %}</figcaption>
|
||||
</figure>
|
||||
{% empty %}
|
||||
{% include 'chapter-cover.html' %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div data-reader-end aria-hidden="true"></div>
|
||||
</div></div>
|
||||
{% include 'chapter-finish.html' %}
|
||||
</section>
|
||||
{% else %}<h1>{{ chapter.title|slx_brand }}</h1>{% include "view-eye.html" with views=chapter.public_views %}<p>No pages have been posted for this chapter yet.</p>{% endif %}
|
||||
{% if chapter.summary %}<p>{{ chapter.summary|slx_brand }}</p>{% endif %}
|
||||
<nav class="actions" aria-label="Chapter navigation">
|
||||
{% if previous_chapter %}<a class="cta secondary" href="{% url 'chapter' previous_chapter.number %}">Previous chapter</a>{% endif %}
|
||||
<a class="cta secondary" href="{% url 'chapters' %}">Chapter archive</a>
|
||||
{% if next_chapter %}<a class="cta" href="{% url 'chapter' next_chapter.number %}">Next chapter</a>{% endif %}
|
||||
</nav>
|
||||
{% include 'chapter-reviews.html' %}{% include 'fan-section.html' %}</main>{% endblock %}
|
||||
Reference in new issue
Block a user