mirror of
https://github.com/ZizzyDizzyMC/linx-server.git
synced 2026-07-25 17:04:04 +00:00
Added audio and pdf templates
This commit is contained in:
parent
674c4be3e3
commit
19070b6bfd
2 changed files with 22 additions and 0 deletions
9
templates/display/audio.html
Normal file
9
templates/display/audio.html
Normal 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 %}
|
||||
|
||||
13
templates/display/pdf.html
Normal file
13
templates/display/pdf.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue