Added audio and pdf templates

This commit is contained in:
andreimarcu 2015-09-27 22:16:50 -04:00
parent 674c4be3e3
commit 19070b6bfd
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block main %}
<audio controls style='width: 500px;' preload='auto'>
<source src='/selif/{{ filename }}'>
<a href='/selif/{{ filename }}'>Download it instead</a>
</audio>
{% endblock %}

View File

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block main %}
<object data="/selif/{{ filename }}"
type="application/pdf"
width=910
height=800>
<p>It appears your Web browser is not configured to display PDF files.
No worries, just <a href="/selif/{{ filename }}">click here to download the PDF file.</a></p>
</object>
{% endblock %}