product edit: move Tags well to bottom of form, just above Save Settings
The 'Tags are derived from your title & description' explainer was crowding the visibility radios. Moved it to sit immediately above the Save Settings submit so the form reads top-down as input → settings → explain → save.
This commit is contained in:
parent
7c4959946b
commit
70c3e647d1
1 changed files with 51 additions and 51 deletions
|
|
@ -495,6 +495,57 @@
|
|||
<br />
|
||||
<br />
|
||||
|
||||
{% if request.torrent_enabled and torrent_enabled %}
|
||||
<label>Torrent Distribution</label>
|
||||
|
||||
{% if torrent_seeded_but_private %}
|
||||
<p style="color:var(--color-warning,#b45309);background:var(--color-warning-subtle,#fffbeb);border:1px solid currentColor;border-radius:var(--radius-md);padding:var(--space-3);margin:.5rem 0">
|
||||
<strong>Active torrent — file cannot be recalled.</strong>
|
||||
This product is no longer public, so the magnet link is hidden from visitors.
|
||||
However, the file is already seeded in the BitTorrent network and will remain
|
||||
available to anyone who already has the magnet link.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<label style="font-weight:normal;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.5rem;margin:.25rem 0">
|
||||
<input type="checkbox" name="torrent_opt_in"
|
||||
{% if torrent_opt_in %}checked{% endif %} />
|
||||
Seed this product via BitTorrent
|
||||
</label>
|
||||
<p style="color:var(--color-text-muted,#888);font-size:.85em;margin:.25rem 0 .75rem">
|
||||
Once seeded, the file persists in the BitTorrent network permanently —
|
||||
it cannot be recalled even if you disable this or make the product private.
|
||||
Only enable for files you intend to distribute publicly forever.
|
||||
</p>
|
||||
|
||||
{% if torrent_magnet_link %}
|
||||
<div style="display:grid;grid-template-columns:1fr auto auto auto;gap:.5rem;align-items:center">
|
||||
<input type="text" id="torrent_magnet_link_display"
|
||||
value="{{ torrent_magnet_link }}" readonly
|
||||
class="mps-text-input" style="min-width:0;color:#888" />
|
||||
<button type="button"
|
||||
onclick="navigator.clipboard.writeText(document.getElementById('torrent_magnet_link_display').value)"
|
||||
class="mps-button" style="white-space:nowrap">Copy Magnet</button>
|
||||
<a href="{{ torrent_magnet_link }}" class="mps-button" style="white-space:nowrap">◡ Open</a>
|
||||
{% if torrent_file_url %}
|
||||
<a href="{{ torrent_file_url }}" class="mps-button" style="white-space:nowrap" download>↧ .torrent</a>
|
||||
{% else %}
|
||||
<span></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% elif torrent_opt_in %}
|
||||
<p style="color:#888;margin:.25rem 0">
|
||||
Seeding enabled — magnet link will be generated when you upload the product file.
|
||||
</p>
|
||||
{% else %}
|
||||
<p style="color:#888;margin:.25rem 0">
|
||||
Enable seeding above, then upload the product file to generate a magnet link.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<br />
|
||||
{% endif %}
|
||||
|
||||
{# MPS-24: manual tagging is "ghost metadata" — invisible to the
|
||||
humans and agents reading the page. Hidden by default
|
||||
(request.manual_tags_enabled, see CLAUDE.md). Tags are derived
|
||||
|
|
@ -574,57 +625,6 @@
|
|||
<br />
|
||||
<br />
|
||||
|
||||
{% if request.torrent_enabled and torrent_enabled %}
|
||||
<label>Torrent Distribution</label>
|
||||
|
||||
{% if torrent_seeded_but_private %}
|
||||
<p style="color:var(--color-warning,#b45309);background:var(--color-warning-subtle,#fffbeb);border:1px solid currentColor;border-radius:var(--radius-md);padding:var(--space-3);margin:.5rem 0">
|
||||
<strong>Active torrent — file cannot be recalled.</strong>
|
||||
This product is no longer public, so the magnet link is hidden from visitors.
|
||||
However, the file is already seeded in the BitTorrent network and will remain
|
||||
available to anyone who already has the magnet link.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<label style="font-weight:normal;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.5rem;margin:.25rem 0">
|
||||
<input type="checkbox" name="torrent_opt_in"
|
||||
{% if torrent_opt_in %}checked{% endif %} />
|
||||
Seed this product via BitTorrent
|
||||
</label>
|
||||
<p style="color:var(--color-text-muted,#888);font-size:.85em;margin:.25rem 0 .75rem">
|
||||
Once seeded, the file persists in the BitTorrent network permanently —
|
||||
it cannot be recalled even if you disable this or make the product private.
|
||||
Only enable for files you intend to distribute publicly forever.
|
||||
</p>
|
||||
|
||||
{% if torrent_magnet_link %}
|
||||
<div style="display:grid;grid-template-columns:1fr auto auto auto;gap:.5rem;align-items:center">
|
||||
<input type="text" id="torrent_magnet_link_display"
|
||||
value="{{ torrent_magnet_link }}" readonly
|
||||
class="mps-text-input" style="min-width:0;color:#888" />
|
||||
<button type="button"
|
||||
onclick="navigator.clipboard.writeText(document.getElementById('torrent_magnet_link_display').value)"
|
||||
class="mps-button" style="white-space:nowrap">Copy Magnet</button>
|
||||
<a href="{{ torrent_magnet_link }}" class="mps-button" style="white-space:nowrap">◡ Open</a>
|
||||
{% if torrent_file_url %}
|
||||
<a href="{{ torrent_file_url }}" class="mps-button" style="white-space:nowrap" download>↧ .torrent</a>
|
||||
{% else %}
|
||||
<span></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% elif torrent_opt_in %}
|
||||
<p style="color:#888;margin:.25rem 0">
|
||||
Seeding enabled — magnet link will be generated when you upload the product file.
|
||||
</p>
|
||||
{% else %}
|
||||
<p style="color:#888;margin:.25rem 0">
|
||||
Enable seeding above, then upload the product file to generate a magnet link.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<br />
|
||||
{% endif %}
|
||||
|
||||
<input type="submit" name="submit" class="mps-submit" value="Save Settings" />
|
||||
</form>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue