Added auto removal of expired pastas
This commit is contained in:
parent
5bae4310a3
commit
22b61fc793
7 changed files with 59 additions and 13 deletions
|
@ -3,7 +3,12 @@
|
|||
<title>MicroBin</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<body style="max-width: 720px; margin: auto; padding-left:0.5rem; padding-right:0.5rem; line-height: 1.5; font-size: 1.1em; font-family: sans-serif">
|
||||
<body style="max-width: 720px;
|
||||
margin: auto;
|
||||
padding-left:0.5rem;
|
||||
padding-right:0.5rem;
|
||||
line-height: 1.5;
|
||||
font-size: 1.1em;">
|
||||
<br>
|
||||
|
||||
<b style="margin-right: 0.5rem">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<label for="expiration">Expiration</label><br>
|
||||
<select name="expiration" id="expiration">
|
||||
<optgroup label="Expire">
|
||||
<option value="firstread">First Read</option>
|
||||
<option value="1min">1 minute</option>
|
||||
<option value="10min">10 minutes</option>
|
||||
<option value="1hour">1 hour</option>
|
||||
<option selected value="24hour">24 hours</option>
|
||||
|
@ -18,6 +18,6 @@
|
|||
<textarea style="width: 100%; min-height: 100px" name="content"></textarea>
|
||||
<br>
|
||||
<br>
|
||||
<input style="width: 100px; background-color: limegreen" type="submit" value="Submit"/>
|
||||
<input style="width: 100px; background-color: limegreen"; type="submit" value="Save"/>
|
||||
</form>
|
||||
{% include "footer.html" %}
|
|
@ -1,5 +1,5 @@
|
|||
{% include "header.html" %}
|
||||
<a href="/rawpasta/{{pasta.id}}">Raw Pasta</a>
|
||||
<a href="/rawpasta/{{pasta.idAsAnimals()}}">Raw Pasta</a>
|
||||
<pre style="background: lightgray; border: 1px black solid; padding: 0.5rem; overflow: auto">
|
||||
{{pasta}}
|
||||
</pre>
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
{% include "header.html" %}
|
||||
|
||||
|
||||
{% if pastas.is_empty() %}
|
||||
<p>
|
||||
No pastas yet. 😔 Create one <a href="/">here</a>.
|
||||
</p>
|
||||
{%- else %}
|
||||
<table style="width: 100%" border="1">
|
||||
<tr style="background: lightgrey">
|
||||
<th>
|
||||
|
@ -31,10 +38,5 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% if pastas.is_empty() %}
|
||||
<p>
|
||||
No Pastas :-(
|
||||
</p>
|
||||
{%- endif %}
|
||||
{% include "footer.html" %}
|
Loading…
Add table
Add a link
Reference in a new issue