| 1 |
1 |
|
<div class="version-upload" id="version-upload" data-item-id="{{ item.id }}">
|
| 2 |
|
- |
<div class="warning-box">
|
| 3 |
|
- |
Version changes are mandatory: Any published change requires a new version number.
|
| 4 |
|
- |
</div>
|
| 5 |
2 |
|
|
| 6 |
3 |
|
{% if versions.is_empty() %}
|
| 7 |
4 |
|
<div style="text-align: center; padding: 2rem 1rem; opacity: 0.6;">
|
| 8 |
|
- |
<p>No versions uploaded yet. Create your first version below to publish this item.</p>
|
|
5 |
+ |
<p>No versions uploaded yet. Create your first version below.</p>
|
| 9 |
6 |
|
</div>
|
| 10 |
7 |
|
{% else %}
|
| 11 |
8 |
|
<table class="data-table">
|
| 12 |
9 |
|
<thead>
|
| 13 |
10 |
|
<tr>
|
| 14 |
11 |
|
<th>Version</th>
|
| 15 |
|
- |
<th>Uploaded</th>
|
| 16 |
|
- |
<th>Files</th>
|
|
12 |
+ |
<th>Label</th>
|
|
13 |
+ |
<th>File</th>
|
| 17 |
14 |
|
<th>Size</th>
|
| 18 |
15 |
|
<th>Downloads</th>
|
| 19 |
|
- |
<th>Status</th>
|
| 20 |
16 |
|
<th>Actions</th>
|
| 21 |
17 |
|
</tr>
|
| 22 |
18 |
|
</thead>
|
| 24 |
20 |
|
{% for version in versions %}
|
| 25 |
21 |
|
<tr>
|
| 26 |
22 |
|
<td><span class="badge{% if version.is_current %} current{% endif %}">v{{ version.number }}</span></td>
|
| 27 |
|
- |
<td>{{ version.uploaded_date }}</td>
|
| 28 |
|
- |
<td>{% if version.has_file %}{% match version.file_name %}{% when Some with (name) %}{{ name }}{% when None %}1 file{% endmatch %}{% else %}No file{% endif %}</td>
|
|
23 |
+ |
<td style="font-size: 0.85rem;">{% if let Some(label) = version.label %}{{ label }}{% endif %}</td>
|
|
24 |
+ |
<td style="font-size: 0.85rem;">{% if version.has_file %}{% match version.file_name %}{% when Some with (name) %}{{ name }}{% when None %}1 file{% endmatch %}{% else %}<span style="opacity: 0.5;">No file</span>{% endif %}</td>
|
| 29 |
25 |
|
<td>{{ version.size }}</td>
|
| 30 |
26 |
|
<td>{{ version.downloads }}</td>
|
| 31 |
|
- |
<td>{{ version.status }}</td>
|
| 32 |
27 |
|
<td>
|
| 33 |
28 |
|
{% if version.has_file %}
|
| 34 |
29 |
|
<button class="secondary download-version-btn" style="padding: 0.4rem 0.8rem; font-size: 0.85rem;"
|
| 48 |
43 |
|
|
| 49 |
44 |
|
<!-- New Version Form -->
|
| 50 |
45 |
|
<div id="new-version-form">
|
| 51 |
|
- |
<div class="form-group">
|
| 52 |
|
- |
<label for="new-version-number">New Version Number</label>
|
| 53 |
|
- |
<input type="text" id="new-version-number" placeholder="e.g., 1.3.0">
|
|
46 |
+ |
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;">
|
|
47 |
+ |
<div class="form-group">
|
|
48 |
+ |
<label for="new-version-number">Version Number</label>
|
|
49 |
+ |
<input type="text" id="new-version-number" placeholder="e.g., 1.0">
|
|
50 |
+ |
</div>
|
|
51 |
+ |
|
|
52 |
+ |
<div class="form-group">
|
|
53 |
+ |
<label for="new-version-label">Label (optional)</label>
|
|
54 |
+ |
<input type="text" id="new-version-label" placeholder="e.g., macOS (arm), Linux (x86_64)">
|
|
55 |
+ |
</div>
|
| 54 |
56 |
|
</div>
|
| 55 |
57 |
|
|
| 56 |
58 |
|
<div class="form-group">
|
| 57 |
|
- |
<label for="version-changelog">Version Notes / Changelog</label>
|
| 58 |
|
- |
<textarea id="version-changelog" placeholder="Describe what changed in this version..."></textarea>
|
|
59 |
+ |
<label for="version-changelog">Notes (optional)</label>
|
|
60 |
+ |
<textarea id="version-changelog" rows="2" placeholder="What changed in this version..."></textarea>
|
| 59 |
61 |
|
</div>
|
| 60 |
62 |
|
|
| 61 |
63 |
|
<div class="file-upload-area" id="version-dropzone">
|
| 62 |
64 |
|
<div class="upload-text">Drop file here or click to upload</div>
|
| 63 |
|
- |
<div class="upload-hint">Supported: ZIP, DMG, EXE, AppImage, DEB, tar.gz, CLAP, VST3 up to 500 MB</div>
|
|
65 |
+ |
<div class="upload-hint">ZIP, DMG, EXE, AppImage, DEB, tar.gz, CLAP, VST3 up to 500 MB</div>
|
| 64 |
66 |
|
<input type="file" id="version-file-input" style="display: none;"
|
| 65 |
67 |
|
accept=".zip,.dmg,.exe,.appimage,.deb,.tar.gz,.clap,.vst3">
|
| 66 |
68 |
|
</div>
|
| 72 |
74 |
|
<div class="hidden" id="existing-version-upload">
|
| 73 |
75 |
|
<div class="file-upload-area" id="existing-version-dropzone">
|
| 74 |
76 |
|
<div class="upload-text">Drop file to upload for this version</div>
|
| 75 |
|
- |
<div class="upload-hint">Supported: ZIP, DMG, EXE, AppImage, DEB, tar.gz, CLAP, VST3</div>
|
|
77 |
+ |
<div class="upload-hint">ZIP, DMG, EXE, AppImage, DEB, tar.gz, CLAP, VST3</div>
|
| 76 |
78 |
|
<input type="file" id="existing-version-file-input" style="display: none;"
|
| 77 |
79 |
|
accept=".zip,.dmg,.exe,.appimage,.deb,.tar.gz,.clap,.vst3">
|
| 78 |
80 |
|
</div>
|