summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2017-09-02 08:23:11 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-09-02 08:23:36 (GMT)
commit921e60514f504661436b917066147422c489f68d (patch)
tree74c7ad72ef9c086148b4072fe934d3236a465d56
parent3b391e3544aad6b115f87b1fac0dbe72132b2f2b (diff)
downloadtabellio.pfbviews-921e60514f504661436b917066147422c489f68d.zip
tabellio.pfbviews-921e60514f504661436b917066147422c489f68d.tar.gz
tabellio.pfbviews-921e60514f504661436b917066147422c489f68d.tar.bz2
use <audio> tag for pleniere
-rw-r--r--tabellio/pfbviews/parlevent_templates/view.pt10
1 files changed, 9 insertions, 1 deletions
diff --git a/tabellio/pfbviews/parlevent_templates/view.pt b/tabellio/pfbviews/parlevent_templates/view.pt
index 6fa35d6..6016366 100644
--- a/tabellio/pfbviews/parlevent_templates/view.pt
+++ b/tabellio/pfbviews/parlevent_templates/view.pt
@@ -36,7 +36,15 @@
<li><a href="#" class="cri" tal:condition="python: context.cri and context.cri.to_object"
tal:attributes="href context/cri/to_object/absolute_url">Rapport / Compte rendu</a>
<span class="cri" tal:condition="python: not(context.cri and context.cri.to_object)">Rapport / Compte rendu (non disponible)</span></li>
- <li><a tal:attributes="href string:${context/absolute_url}/seance.m3u" class="streaming" tal:condition="view/has_stream">Streaming</a>
+<li><tal:block tal:condition="view/has_stream">
+ <span class="streaming">Réécouter :
+<br/><audio controls preload="metadata">
+ <source tal:attributes="src string:/mp3/${view/get_stream_name}" type="audio/mpeg"/>
+ (non pris en charge par votre navigateur)
+</audio>
+</span>
+ </tal:block>
+
<span class="streaming" tal:condition="not: view/has_stream">Streaming (non disponible)</span></li>
</ul>