This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.webviews/tabellio/webviews/streaming.pt

41 lines
1.5 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>