Files
racalmas/website/agenda/templates/event_details.html
Milan 25620ab1f5 listen to records
After the end of a show, the audio recordings are uploaded to a
directory "listen_dir" under a secret name, beginning with the
transmission date "yyyy-mm-dd hh_mm". The directory is available as URL
"listen_url", but must not be listable.  In order to gain access to the
recording for 7 days after the show, a check is done to determine
whether the file is available. A random key for the show is stored in
the database if a file matching the date is found in listen_dir.  With
this key as a name, a symbolic link to the original audio file is
created.  The random name can be used in public documents.  If the show
data is read again, the key will be retrieved from the database. File
access can be restricted by the Apache2 handler ListenerAccess.pm. With
it, access to the public symlink is possible for one week.
2020-11-15 20:29:17 +01:00

94 lines
3.9 KiB
HTML

<TMPL_IF use_client_cache>Cache-Control: max-age=600, must-revalidate
</TMPL_IF>Content-type:text/html; charset=utf-8;
<!DOCTYPE html>
<TMPL_IF extern_access><TMPL_INCLUDE ../index.html>gesucht und gefunden...<TMPL_ELSE>
<html>
<body>
<TMPL_IF no_result>
<div id="is_empty">
<TMPL_IF search>
<TMLP_VAR count> Treffer:
</TMPL_IF>
</div>
</TMPL_IF>
<TMPL_LOOP events>
<div class="vevent">
<span class="dtstart"><TMPL_VAR start></span>
<TMPL_IF NAME=end><span class="dtend"><TMPL_VAR end></span></TMPL_IF>
<span class="location"><TMPL_VAR location_mapped></span>
<div class="date<TMPL_IF is_running> running</TMPL_IF>">
<TMPL_IF is_running> ... Diese Sendung l&auml;uft gerade ...<p></TMPL_IF>
<h1 class="summary title">
<TMPL_IF series_name>
<a href="#" onclick="calcms.showPrevSeriesEvent(<TMPL_VAR event_id>)" title="vorherige Sendung">&laquo;</a><TMPL_VAR series_name><a href="#" onclick="calcms.showNextSeriesEvent(<TMPL_VAR event_id>)" title="n&auml;chste Sendung">&raquo;</a>
</TMPL_IF>
<TMPL_VAR full_title_no_series>
<div style="font-size:1rem">
<TMPL_VAR weekday_name>, <TMPL_VAR start_date_name>,
<span style="font-size:1.5rem"><TMPL_VAR start_time_name></span> bis <TMPL_VAR end_time_name> Uhr
</div>
</h1>
<TMPL_IF program> (<TMPL_VAR program>)</TMPL_IF>
</div>
<div class="content description" >
<TMPL_VAR excerpt > <TMPL_VAR user_excerpt >
<TMPL_IF excerpt><hr><TMPL_ELSE><TMPL_IF user_excerpt><hr></TMPL_IF></TMPL_IF>
<TMPL_IF no_image_in_text>
<TMPL_IF .hide_event_images>
<figure>
<TMPL_IF series_thumb_url>
<img alt="<TMPL_VAR series_name>" src="<TMPL_VAR series_thumb_url>">
<TMPL_IF series_image_label><figcaption>Bild: <TMPL_VAR series_image_label></figcaption></TMPL_IF>
</TMPL_IF>
</figure>
<TMPL_ELSE>
<figure>
<TMPL_IF thumb_url>
<img alt="<TMPL_VAR series_name>" src="<TMPL_VAR thumb_url>">
<TMPL_IF image_label><figcaption>Bild: <TMPL_VAR image_label></figcaption></TMPL_IF>
</TMPL_IF>
</figure>
</TMPL_IF>
</TMPL_IF>
<TMPL_VAR topic escape=none><TMPL_VAR content escape=none>
<TMPL_IF listen_url><audio
controls
src="<TMPL_VAR listen_url>"
title="Sendung nachh&ouml;ren"
></audio></TMPL_IF>
<TMPL_IF recurrence_date><a href="<TMPL_VAR recurrence>.html">
Wiederholung vom <TMPL_VAR recurrence_weekday_name>, <TMPL_VAR recurrence_date_name>, <TMPL_VAR recurrence_time_name> Uhr</a>
</TMPL_IF>
</div>
</div>
<div id="icon_bar">
<a href="<TMPL_VAR .controllers.domain><TMPL_VAR .controllers.atom>/radio.atom.xml" title="Sendeplan abonnieren - Atom"><img width="16" height="16" alt="Atom Feed" src="<TMPL_VAR static_files_url>image/feed.png" /></a>
<a href="<TMPL_VAR .controllers.domain><TMPL_VAR .controllers.rss>/radio.rss.xml" title="Sendeplan abonnieren - RSS"><img width="16" height="16" alt="RSS Feed" src="<TMPL_VAR static_files_url>image/feed.png" /></a>
<a href="<TMPL_VAR .controllers.domain><TMPL_VAR .controllers.ical>/<TMPL_VAR event_id>/<TMPL_IF series_name><TMPL_VAR series_name escape=url>-</TMPL_IF><TMPL_VAR title escape=url>.ics" title="Termin merken"><img width="16" height="16" alt="ICalendar" src="<TMPL_VAR static_files_url>image/ical.png" /></a>
</div>
<div id="calcms_comments">
<script>
jQuery(document).ready(
function() {
calcms.showCommentsByEventIdOrEventStart('<TMPL_VAR event_id>','<TMPL_VAR start_datetime>');
}
);
</script>
</div>
</TMPL_LOOP>
</body>
</html>