_page_batch.html (1576B)
1 {% from "_listing.html" import row_file %} 2 {% from "_icons.html" import icon %} 3 <section class="page-head"> 4 <h1>Batch upload</h1> 5 <p class="lede">A group of files uploaded together. Share this page to hand them all over at once.</p> 6 </section> 7 <div class="listing-toolbar"> 8 <p class="listing-toolbar__counts"><strong>{{ batch_files | length }}</strong> file{{ 's' if batch_files | length != 1 else '' }} in this batch</p> 9 <div class="listing-toolbar__actions"> 10 <button type="button" class="btn" data-copy-url="page">{{ icon('copy') }}<span>Copy batch link</span></button> 11 <button id="download-zip-btn" type="button" class="btn btn-primary" data-batch-id="{{ batch_id }}" title="Download every file in this batch as a .zip"> 12 <svg id="zip-spinner" class="spin-anim" style="display: none;" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg> 13 {{ icon('download') }} 14 <span id="zip-btn-text"><span class="zip-long">Download all (.zip)</span><span class="zip-short">.zip</span></span> 15 </button> 16 </div> 17 </div> 18 <div class="list-container"> 19 <div class="list-group" id="file-list"> 20 {% for f in batch_files %} 21 {{ row_file(f.filename, f.hf_path, f.size_str) }} 22 {% endfor %} 23 {% if not batch_files %} 24 <div class="empty-state"><p>This batch has no files.</p></div> 25 {% endif %} 26 </div> 27 </div>