First functions
Added first functions in backend The homepage can now show the most recent archives
This commit is contained in:
parent
a2f9b4f978
commit
d4016ce80c
8 changed files with 187 additions and 30 deletions
|
@ -2,6 +2,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/static/base.css" />
|
||||
{% block meta %}
|
||||
{% endblock %}
|
||||
<title>RAR-Index – {{title}}</title>
|
||||
</head>
|
||||
|
||||
|
|
|
@ -1,5 +1,20 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block meta %}
|
||||
<link rel="stylesheet" href="/static/home.css" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Test</p>
|
||||
{% if archives|length > 0 %}
|
||||
<div class="grid-container">
|
||||
{% for arch in archives %}
|
||||
<div class="grid-item clickable"><b>{{arch[0]}}</b></div>
|
||||
<div class="grid-item"><p>{{arch[1]|spacer}}</p></div>
|
||||
<div class="grid-item"><p>{{arch[2]|ctime}}</p></div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p>No matching archives</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue