This commit is contained in:
parent
97ac3b1175
commit
67cad30e87
2 changed files with 34 additions and 23 deletions
|
@ -34,10 +34,6 @@ body {
|
||||||
line-height: 1.65
|
line-height: 1.65
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
|
||||||
border-bottom: 1px solid black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu ul {
|
.menu ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
@ -60,3 +56,10 @@ a:hover {
|
||||||
color: black;
|
color: black;
|
||||||
border-bottom: .2rem solid dimgrey;
|
border-bottom: .2rem solid dimgrey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
background-color: transparent;
|
||||||
|
resize: none;
|
||||||
|
width: 100%;
|
||||||
|
height: 80vh;
|
||||||
|
}
|
||||||
|
|
|
@ -1,23 +1,31 @@
|
||||||
{% extends "base.html.j2" %}
|
{% extends "base.html.j2" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form class="container" id="paste-content" method="POST" accept-charset="UTF-8" action="{{ url_for('home.create') }}">
|
{% with messages = get_flashed_messages(category_filter=["create"]) %}
|
||||||
<textarea name="content" form="paste-content" placeholder="Enter your text here"></textarea>
|
<div class="infobox">
|
||||||
<label for="time">Time in second</label>
|
|
||||||
<input id="time" name="time">
|
|
||||||
<input type="submit">
|
|
||||||
</form>
|
|
||||||
{% with messages = get_flashed_messages(category_filter=["create"]) %}
|
|
||||||
{% if messages[0] %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if messages[1] %}
|
</div>
|
||||||
<p>You can delete paste with : <a href="{{ request.base_url }}delete/{{ messages[0] }}?secret={{ messages[1] }}">delete</a></p>
|
{% endwith %}
|
||||||
{% endif %}
|
|
||||||
{% endwith %}
|
|
||||||
|
|
||||||
{% with messages = get_flashed_messages(category_filter=["delete"]) %}
|
{% with messages = get_flashed_messages(category_filter=["delete"]) %}
|
||||||
{% if messages[0] %}
|
{% if messages[0] %}
|
||||||
<p>Paste {{ messages[0] }} deleted </p>
|
<p>Paste {{ messages[0] }} deleted </p>
|
||||||
{% endif %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue