2022-04-10 22:21:45 +00:00
|
|
|
{% include "header.html" %}
|
2022-04-11 13:41:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% if pastas.is_empty() %}
|
|
|
|
<p>
|
|
|
|
No pastas yet. 😔 Create one <a href="/">here</a>.
|
|
|
|
</p>
|
|
|
|
{%- else %}
|
2022-04-23 15:47:36 +00:00
|
|
|
<br>
|
|
|
|
<table style="width: 100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">Pastas</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-04-10 22:21:45 +00:00
|
|
|
<th>
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Created
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Expiration
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
|
|
|
|
</th>
|
|
|
|
</tr>
|
2022-04-23 15:47:36 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-04-10 22:21:45 +00:00
|
|
|
{% for pasta in pastas %}
|
2022-04-23 15:47:36 +00:00
|
|
|
{% if pasta.pasta_type == "text" %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/pasta/{{pasta.idAsAnimals()}}">{{pasta.idAsAnimals()}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.createdAsString()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.expirationAsString()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a style="margin-right:1rem" href="/raw/{{pasta.idAsAnimals()}}">Raw</a>
|
|
|
|
<a href="/remove/{{pasta.idAsAnimals()}}">Remove</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="4">URL Redirects</th>
|
|
|
|
</tr>
|
|
|
|
<tr >
|
|
|
|
<th>
|
|
|
|
Key
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Created
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Expiration
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
|
|
|
|
</th>
|
2022-04-10 22:21:45 +00:00
|
|
|
</tr>
|
2022-04-23 15:47:36 +00:00
|
|
|
</thead>
|
|
|
|
{% for pasta in pastas %}
|
|
|
|
{% if pasta.pasta_type == "url" %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="/url/{{pasta.idAsAnimals()}}">{{pasta.idAsAnimals()}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.createdAsString()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{pasta.expirationAsString()}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a style="margin-right:1rem" href="/raw/{{pasta.idAsAnimals()}}">Raw</a>
|
|
|
|
<a href="/remove/{{pasta.idAsAnimals()}}">Remove</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{%- endif %}
|
2022-04-10 22:21:45 +00:00
|
|
|
{% endfor %}
|
2022-04-23 15:47:36 +00:00
|
|
|
</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" %}
|