some progress
Some checks failed
ci/woodpecker/push/lint Pipeline failed

This commit is contained in:
Ada 2023-09-27 15:09:21 +02:00
parent 97ac3b1175
commit 67cad30e87
2 changed files with 34 additions and 23 deletions

View file

@ -34,10 +34,6 @@ body {
line-height: 1.65
}
nav {
border-bottom: 1px solid black;
}
.menu ul {
list-style-type: none;
padding-left: 0;
@ -60,3 +56,10 @@ a:hover {
color: black;
border-bottom: .2rem solid dimgrey;
}
textarea {
background-color: transparent;
resize: none;
width: 100%;
height: 80vh;
}

View file

@ -1,23 +1,31 @@
{% extends "base.html.j2" %}
{% block content %}
<form class="container" id="paste-content" method="POST" accept-charset="UTF-8" action="{{ url_for('home.create') }}">
<textarea name="content" form="paste-content" placeholder="Enter your text here"></textarea>
<label for="time">Time in second</label>
<input id="time" name="time">
<input type="submit">
</form>
{% with messages = get_flashed_messages(category_filter=["create"]) %}
{% with messages = get_flashed_messages(category_filter=["create"]) %}
<div class="infobox">
{% if messages[0] %}
<p>Paste available at : <a href="{{ request.base_url }}{{ messages[0] }}">{{ messages[0] }}</a></p>
<p>Paste : <a href="{{ request.base_url }}{{ messages[0] }}">{{ messages[0] }}</a> | <a
href="{{ request.base_url }}delete/{{ messages[0] }}?secret={{ messages[1] }}">delete</a></p>
{% endif %}
{% if messages[1] %}
<p>You can delete paste with : <a href="{{ request.base_url }}delete/{{ messages[0] }}?secret={{ messages[1] }}">delete</a></p>
{% endif %}
{% endwith %}
</div>
{% endwith %}
{% with messages = get_flashed_messages(category_filter=["delete"]) %}
{% with messages = get_flashed_messages(category_filter=["delete"]) %}
{% if messages[0] %}
<p>Paste {{ messages[0] }} deleted </p>
{% endif %}
{% endwith %}
{% endwith %}
<form class="container" id="paste-content" method="POST" accept-charset="UTF-8"
action="{{ url_for('home.create') }}">
<textarea name="content" form="paste-content" placeholder="Enter your text here"></textarea>
<input list="time" name="time">
<datalist id="time">
<option value="604800">7 days</option>
<option value="86400">1 day</option>
<option value="43200">12 hours</option>
<option value="21600">6 hours</option>
<option value="3600">1 hour</option>
<option value="600">10 minutes</option>
</datalist>
<input type="submit">
</form>
{% endblock %}