41 lines
1.5 KiB
XML
41 lines
1.5 KiB
XML
<tal:block i18n:domain="plone">
|
||
<dl class="portlet portletStreaming">
|
||
|
||
<dt class="portletHeader"
|
||
tal:attributes="class python:view.hasName() and 'portletHeader' or 'portletHeader hiddenStructure'">
|
||
<span class="portletTopLeft"></span>
|
||
<span
|
||
class="tile"
|
||
tal:content="view/title"
|
||
i18n:translate="">Streaming</span>
|
||
<span class="portletTopRight"></span>
|
||
</dt>
|
||
|
||
<dd class="portletItem"
|
||
tal:define="current_meeting view/current_meeting;
|
||
next_meeting view/next_meeting;">
|
||
<div id="seance-en-cours" tal:condition="python: current_meeting is not None">
|
||
<a tal:attributes="href view/live_url">Écoutez la séance en direct</a>
|
||
</div>
|
||
<script>
|
||
$('div#seance-en-cours a').click(function(event) {
|
||
if ($(this).attr('href').indexOf('.m3u') == -1) {
|
||
window.open($(this).attr('href'), 'streaming', 'width=220,height=220');
|
||
event.preventDefault();
|
||
}
|
||
});
|
||
</script>
|
||
|
||
<div id="prochaine-seance" tal:condition="python: (next_meeting is not None and current_meeting is None)">
|
||
<a tal:attributes="href next_meeting/absolute_url">Prochaine séance :<br/>
|
||
<span tal:replace="next_meeting/longdatetime"/></a>
|
||
</div>
|
||
<div id="pas-de-seance" tal:condition="python: (next_meeting is None and current_meeting is None)">
|
||
Pas de séance planifiée actuellement
|
||
</div>
|
||
<span class="portletBottomLeft"></span>
|
||
<span class="portletBottomRight"></span>
|
||
</dd>
|
||
</dl>
|
||
</tal:block>
|