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
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,12 @@
|
|||
{% 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"]) %}
|
||||
<div class="infobox">
|
||||
{% if messages[0] %}
|
||||
<p>Paste available at : <a href="{{ request.base_url }}{{ messages[0] }}">{{ messages[0] }}</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>
|
||||
<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 %}
|
||||
</div>
|
||||
{% endwith %}
|
||||
|
||||
{% with messages = get_flashed_messages(category_filter=["delete"]) %}
|
||||
|
@ -20,4 +14,18 @@
|
|||
<p>Paste {{ messages[0] }} deleted </p>
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
|
|
Reference in a new issue