@ -28,10 +28,10 @@ def download():
form.start_time.data = datetime.now() - timedelta(hours=1)
form.length.data = 60
elif form.validate_on_submit():
flash('The download should start immediately.')
flash('The download should start immediately.', 'success')
return render_template('download.html', form=form, filename='test.mp3')
else:
flash('Error')
flash('Error', 'warning')
return render_template('download.html', form=form)
@ -1,16 +1,11 @@
{% extends "bootstrap/base.html" %}
{% import "bootstrap/utils.html" as utils %}
{% block title %}Prolefeeder{% endblock %}
{% block content %}
<div class="container">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-info" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{{ utils.flashed_messages() }}
{% block app_content %}
{% endblock %}