Browse Source

last changes in the templates

master
Cristina Cochior 5 years ago
parent
commit
856f33e90d
  1. 10
      templates/description.html
  2. 2
      templates/layout.html

10
templates/description.html

@ -14,11 +14,17 @@
{% elif item.lower().endswith(('.mp4')) %} {% elif item.lower().endswith(('.mp4')) %}
<video width="320" height="240" controls><source src="../{{ item }}" type="video/mp4">Your browser does not support the video tag.</video> <video width="320" height="240" controls><source src="../{{ item }}" type="video/mp4">Your browser does not support the video tag.</video>
{% elif item.lower().endswith(('.mov')) %}
<video width="320" height="240" controls><source src="../{{ item }}" type="video/mov">Your browser does not support the video tag.</video>
{% elif item.lower().endswith(('.mp3')) %} {% elif item.lower().endswith(('.mp3')) %}
<audio controls><source src="../{{ item }}" type="audio/mpeg">Your browser does not support the audio tag.</audio> <audio controls><source src="../{{ item }}" type="audio/mp3">Your browser does not support the audio tag.</audio>
{% elif item.lower().endswith(('.wav')) %}
<audio controls><source src="../{{ item }}" type="audio/wav">Your browser does not support the audio tag.</audio>
{% elif item.lower().endswith(('.pdf')) %} {% elif item.lower().endswith(('.pdf')) %}
<iframe src="../{{ item }}" height="500" width="90%"></iframe> <iframe src="../{{ item }}" height="450" width="90%"></iframe>
{% endif %} {% endif %}
{% endfor %} {% endfor %}

2
templates/layout.html

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">

Loading…
Cancel
Save