refactored app structure

This commit is contained in:
Bryan Bailey
2022-04-05 23:12:42 -04:00
parent 56b4ec2670
commit 5ca91452ca
23 changed files with 317 additions and 138 deletions

31
app/templates/index.html Normal file
View File

@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% import 'macros/library.html' as library %}
{% block meta %}
{{ super() }}
<!-- Add additional meta tags here -->
{% endblock %}
{% block title %}Testing{% endblock %}
{% block page_content %}
<div class="page-header">
<h1>Y!oink Web App</h1>
</div>
<form method="post" onsubmit="download.disabled = true; url.readOnly = true; return true;">
{{ form.hidden_tag() }}
<div class="input-group mb-3">
{{ form.series.label(class_='input-group-text') }}
<div class="input-group-text">
{{ form.series() }}
</div>
{{ form.url(class_='form-control') }}
{{ form.download(class_='btn btn-outline-primary') }}
</div>
</form>
{{ library.latest_downloads(latest) }}
{% endblock %}