{% block title %}{% if editing %}Edit drop{% else %}New drop{% endif %}{% endblock %}
3
{% block content %}
4
<divclass="head"><h1>{% if editing %}Edit drop{% else %}New drop{% endif %} <small>{% if editing %}saved as one signed change{% else %}a small repository of its own, never listed among your repositories{% endif %}</small></h1></div>
5
{% if let Some(d) = delegation %}<divclass="strip warn">{{ d }}</div>{% endif %}
6
{% if let Some(e) = error %}<pclass="error">{{ e }}</p>{% endif %}
<labelfor="title">Title</label><inputtype="text"id="title"name="title"value="{{ title }}"maxlength="200"placeholder="optional: the first file's name otherwise">
<label><inputtype="radio"name="visibility"value="public"{% if !secret %} checked{% endif %}> public: listed on your Drops page</label>
14
<label><inputtype="radio"name="visibility"value="secret"{% ifsecret %} checked{% endif %}> secret: listed nowhere, readable by anyone with its address</label>
15
</div>
16
<divdata-drop-files>
17
{% for (name, content) in files %}
18
<fieldsetclass="drop-file"data-drop-file>
19
<divclass="row"><div><label>File name</label><inputtype="text"name="name"value="{{ name }}"placeholder="notes.md"maxlength="255"></div><divclass="drop-file-actions"><buttontype="button"class="small"data-drop-removehidden>REMOVE</button></div></div>
<p><buttontype="button"class="small"data-drop-addhidden>+ ADD FILE</button><spanclass="small mute">A file left without a name and content is ignored{% if editing %}; one whose name you clear is removed{% endif %}.</span></p>
25
{% if !kept.is_empty() %}<pclass="small mute">Kept as they are (not text, or pushed with oxy): {% for k in kept %}<code>{{ k }}</code>{% if !loop.last %}, {% endif %}{% endfor %}.</p>{% endif %}
26
{% if editing %}<labelfor="message">Change message</label><inputtype="text"id="message"name="message"value="{{ message }}"placeholder="Edit {{ title }}">{% endif %}
27
<pclass="small mute">The change is authored by your linked key and signed by this hub's key as your delegate. Push protection refuses anything that looks like a credential.</p>