mirror of
https://github.com/YGGverse/rssto.git
synced 2026-03-31 17:15:29 +00:00
draft initial http application
This commit is contained in:
parent
4c99208535
commit
353c78b2f0
12 changed files with 406 additions and 0 deletions
24
crates/http/templates/index.html.tera
Normal file
24
crates/http/templates/index.html.tera
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{% extends "layout" %}
|
||||
{% block content %}
|
||||
{% if rows %}
|
||||
{% for row in rows %}
|
||||
<div>
|
||||
<a name="{{ row.content_id }}"></a>
|
||||
<h2><a href="/{{ row.link }}">{{ row.title }}</a></h2>
|
||||
{% if row.time %}<p>{{ row.time }}</p>{% endif %}
|
||||
<div>
|
||||
{{ row.description }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div>Nothing.</div>
|
||||
{% endif %}
|
||||
{% if next %}<a href="{{ next }}">Next</a>{% endif %}
|
||||
{% if back %}<a href="{{ back }}">Back</a>{% endif %}
|
||||
{% if total %}
|
||||
<span>
|
||||
Page {{ page }} / {{ pages }} ({{ total }} torrent{{ total | pluralize(plural="s") }} total)
|
||||
</span>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue