Browse Source

Added audio and pdf templates

pull/12/head
andreimarcu 9 years ago
parent
commit
19070b6bfd
  1. 9
      templates/display/audio.html
  2. 13
      templates/display/pdf.html

9
templates/display/audio.html

@ -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 %}

13
templates/display/pdf.html

@ -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 %}
Loading…
Cancel
Save