2022-04-10 22:21:45 +00:00
|
|
|
{% include "header.html" %}
|
2022-04-11 13:41:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% if pastas.is_empty() %}
|
2022-05-02 15:53:10 +00:00
|
|
|
<br>
|
2022-04-11 13:41:28 +00:00
|
|
|
<p>
|
2022-06-03 16:24:34 +00:00
|
|
|
No pastas yet. 😔 Create one <a href="/">here</a>.
|
2022-04-11 13:41:28 +00:00
|
|
|
</p>
|
2022-05-02 15:53:10 +00:00
|
|
|
<br>
|
2022-04-11 13:41:28 +00:00
|
|
|
{%- else %}
|
2022-04-23 15:47:36 +00:00
|
|
|
<br>
|
2022-06-03 16:24:34 +00:00
|
|
|
{% if args.pure_html %}
|
|
|
|
<table border="1" style="width: 100%">
|
|
|
|
{% else %}
|
2022-04-23 15:47:36 +00:00
|
|
|
<table style="width: 100%">
|
2022-06-03 16:24:34 +00:00
|
|
|
{% endif %}
|
|
|
|
<thead>
|
2022-04-23 15:47:36 +00:00
|
|
|
<tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
<th colspan="4">Pastas</th>
|
2022-05-02 15:53:10 +00:00
|
|
|
</tr>
|
2022-04-23 15:47:36 +00:00
|
|
|
<tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
<th>
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Created
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Expiration
|
|
|
|
</th>
|
|
|
|
<th>
|
2022-04-10 22:21:45 +00:00
|
|
|
|
2022-06-03 16:24:34 +00:00
|
|
|
</th>
|
2022-04-10 22:21:45 +00:00
|
|
|
</tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-04-10 22:21:45 +00:00
|
|
|
{% for pasta in pastas %}
|
2022-06-03 17:11:14 +00:00
|
|
|
{% if pasta.pasta_type == "text" && !pasta.private %}
|
2022-05-02 15:53:10 +00:00
|
|
|
<tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
<td>
|
|
|
|
<a href="/pasta/{{pasta.id_as_animals()}}">{{pasta.id_as_animals()}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.created_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.expiration_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a style="margin-right:1rem" href="/raw/{{pasta.id_as_animals()}}">Raw</a>
|
|
|
|
{% if pasta.file != "no-file" %}
|
|
|
|
<a style="margin-right:1rem" href="/file/{{pasta.id_as_animals()}}/{{pasta.file}}">File</a>
|
|
|
|
{%- endif %}
|
|
|
|
{% if pasta.editable %}
|
|
|
|
<a style="margin-right:1rem" href="/edit/{{pasta.id_as_animals()}}">Edit</a>
|
|
|
|
{%- endif %}
|
|
|
|
<a href="/remove/{{pasta.id_as_animals()}}">Remove</a>
|
|
|
|
</td>
|
2022-05-02 15:53:10 +00:00
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
2022-04-23 15:47:36 +00:00
|
|
|
{% endfor %}
|
2022-06-03 16:24:34 +00:00
|
|
|
</tbody>
|
2022-05-02 15:53:10 +00:00
|
|
|
</table>
|
|
|
|
<br>
|
2022-06-03 16:24:34 +00:00
|
|
|
{% if args.pure_html %}
|
|
|
|
<table border="1" style="width: 100%">
|
|
|
|
{% else %}
|
|
|
|
<table style="width: 100%">
|
|
|
|
{% endif %}
|
|
|
|
<thead>
|
2022-05-02 15:53:10 +00:00
|
|
|
<tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
<th colspan="4">URL Redirects</th>
|
2022-05-02 15:53:10 +00:00
|
|
|
</tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Created
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Expiration
|
|
|
|
</th>
|
|
|
|
<th>
|
2022-04-23 15:47:36 +00:00
|
|
|
|
2022-06-03 16:24:34 +00:00
|
|
|
</th>
|
2022-04-10 22:21:45 +00:00
|
|
|
</tr>
|
2022-06-03 16:24:34 +00:00
|
|
|
</thead>
|
|
|
|
{% for pasta in pastas %}
|
2022-06-03 17:11:14 +00:00
|
|
|
{% if pasta.pasta_type == "url" && !pasta.private %}
|
2022-06-03 16:24:34 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/url/{{pasta.id_as_animals()}}">{{pasta.id_as_animals()}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.created_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.expiration_as_string()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a style="margin-right:1rem" href="/raw/{{pasta.id_as_animals()}}">Raw</a>
|
|
|
|
{% if pasta.editable %}
|
|
|
|
<a style="margin-right:1rem" href="/edit/{{pasta.id_as_animals()}}">Edit</a>
|
|
|
|
{%- endif %}
|
|
|
|
<a href="/remove/{{pasta.id_as_animals()}}">Remove</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2022-04-10 22:21:45 +00:00
|
|
|
</table>
|
2022-04-23 15:47:36 +00:00
|
|
|
<br>
|
2022-04-10 22:21:45 +00:00
|
|
|
{%- endif %}
|
2022-04-23 15:47:36 +00:00
|
|
|
{% include "footer.html" %}
|