
This is the first, early beta version of Microbin 2. Microbin 2 brings a lot of improvements to Microbin. To name just the most important ones: - Server-side and client-side encryption for uploads, including file attachments, - SQLite database support by default, - Reworked upload settings, 5 privacy levels, - New administrator console (/admin), - Automatic syntax highlighting, - Image and video embedding, - Refreshed styling and QoL features, - New user guide page. Beyond these, - Added file upload size limits, - Added sample .env file with description for each environmental variable, - Removed Info page (moved to admin page), - Pasta list now sorted from newer to older, - Pasta terminology replaced with Upload, - Files are now served with a proper service, not just as a public directory, - Pastas are now stored in /attachments instead of /public. As this is the first beta of Microbin v2, and I do not recommend updating to this in critical environments as long as we are in beta stage. I expect many bugs to emerge and v2 is also getting a few more smaller QoL features from the backlog. README and website won't be updated until v2 is stable and well-tested. Fixes #164 Fixes #156 Fixes #153 Fixes #149 Fixes #139 Fixes #98 Fixes #4 Fixes #105 (sort of) Fixes #97 (sort of) Fixes #45 (sort of) Fixes #22 (sort of)
40 lines
No EOL
1.4 KiB
HTML
40 lines
No EOL
1.4 KiB
HTML
{% include "header.html" %}
|
|
<form action="/{{ path }}/{{ pasta.id_as_animals() }}" method="POST" enctype="multipart/form-data">
|
|
<h4>
|
|
Editing pasta '{{ pasta.id_as_animals() }}'
|
|
</h4>
|
|
<label>Content</label>
|
|
<br>
|
|
<textarea style="width: 100%; min-height: 100px; font-family: monospace;" name="content" id="content" {% if status
|
|
!="incorrect" %} autofocus {% endif %}>{{ pasta.content_escaped() }}</textarea>
|
|
<br>
|
|
<div>
|
|
{% if pasta.readonly || pasta.encrypt_server %}
|
|
<div style="float: left; height: 90px;">
|
|
<label for="password">Re-enter Password <sup><a href="/guide#password">﹖</a></sup></label><br>
|
|
<input {% if status=="incorrect" %} autofocus {% endif %} style="width: 130px; height: 28px;"
|
|
type="password" id="password" name="password" autocomplete="off" />
|
|
{% if status == "incorrect" %}
|
|
<p>
|
|
Incorrect password.
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
<div style="float: right; height: 90px; justify-content: end;">
|
|
<label for="password_field"></label><br>
|
|
<input style="width: 140px; float: right; background-color:
|
|
#2975D2; color: white;" id="submit-button" type="submit" value="Save" />
|
|
</td>
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
</form>
|
|
{% include "footer.html" %} |