seria/templates/create.twig

34 lines
1.7 KiB
Twig
Raw Permalink Normal View History

{% extends 'master.twig' %}
{% set title = 'Create Torrent' %}
{% set tracker_url = 'https://' ~ globals.site_info.host ~ '/announce/' ~ globals.auth_info.userInfo.passKey %}
{% block content %}
<div class="create">
<div class="create-header">
<h2>Creating a torrent</h2>
<p>Here you can submit a torrent for tracking.</p>
<p>You can use any client for submission. This page does not contain any of its own fields, the creator in your client should be sufficient.</p>
<p>Use <input type="text" readonly value="{{ tracker_url }}" onfocus="this.select()"> as the tracker url so you're immediately seeding the torrent, the tracker will error but that's temporary since the torrent has not been submitted yet. This URL contains your private pass key, <b>do not share it</b>.</p>
<p>After your torrent has been submitted it will be queued for approval and won't immediately be available.</p>
</div>
{% if error is defined %}
<div class="create-error">
<div class="create-error-icon"><img src="//static.flash.moe/images/silk/error.png" alt="Error"></div>
<div class="create-error-text">
{{ error }}
</div>
</div>
{% endif %}
<div class="create-form">
<form action="/create" method="post" enctype="multipart/form-data">
<input type="hidden" name="_csrfp" value="{{ csrfp_token() }}">
<label class="create-form-file"><input type="file" name="torrent"></label>
<input class="create-form-submit" type="submit" value="Submit!">
</form>
</div>
</div>
{% endblock %}