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,25 @@
|
||||
{% extends 'admin/base_site.html' %}
|
||||
{% block content %}
|
||||
<p><a href="{{ chapter_url }}">{{ chapter }}</a> · {{ page_count }} saved page{{ page_count|pluralize }}</p>
|
||||
<p>Get a private editorial score, page-specific feedback, and revision priorities based on the saved artwork. The review is a second opinion; it does not affect public ratings.</p>
|
||||
{% if stale %}<p><strong>The artwork, reading order, or chapter details have changed since this review.</strong></p>{% endif %}
|
||||
{% if review.result %}
|
||||
<article class="traffic-panel">
|
||||
<h2>{{ review.result.rating }}/10 · Editorial review</h2>
|
||||
<p>{{ review.updated_at|date:'M j, Y · g:i a' }} · {{ review.model_name }}</p>
|
||||
<h3>First impression</h3>{{ review.result.summary|linebreaks }}
|
||||
<h3>What works</h3>{{ review.result.strengths|linebreaks }}
|
||||
<h3>Revision priorities</h3>{{ review.result.revision_priorities|linebreaks }}
|
||||
<h3>What the AI could not assess</h3>{{ review.result.limitations|linebreaks }}
|
||||
</article>
|
||||
{% endif %}
|
||||
{% if enabled and page_count %}
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<p><label><input type="checkbox" name="confirm_send" value="yes" required> Send saved chapter artwork to the configured OpenAI API for this review.</label></p>
|
||||
<p><button class="studio-button studio-primary" type="submit">Run private review</button> The request may take up to a minute or more. API usage fees may apply.</p>
|
||||
</form>
|
||||
{% elif not enabled %}
|
||||
<p>Set <code>SLX_OPENAI_API_KEY</code> on the server and recreate the web service to enable reviews.</p>
|
||||
{% else %}<p>Upload the chapter pages first.</p>{% endif %}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user