event_dashboard.html: add
This commit is contained in:
@@ -65,6 +65,10 @@ RewriteRule ^rds/(.*)$ events.cgi?template=event_playlist.txt&time=now&limit
|
||||
RewriteRule ^playlist_show/(.*)$ events.cgi?template=event_playlist_show.html&time=future&limit=3&$1 [L]
|
||||
RewriteRule ^json/(.*)$ events.cgi?template=event.json&time=now&limit=15&$1 [L]
|
||||
|
||||
RewriteRule ^dashboard/sendung/(\d+)/[^&]*(&.*)?$ events.cgi?template=event_dashboard_details.html&event_id=$1&$2 [L]
|
||||
RewriteRule ^dashboard/date/(\d{4}-\d{2}-\d{2})/ events.cgi?template=event_dashboard.html.js&date=$1&$2 [L]
|
||||
RewriteRule ^dashboard/(.*)$ events.cgi?template=event_dashboard.html.js&time=now&limit=1&$1 [L]
|
||||
|
||||
RewriteRule ^sendereihe/(.*?)/(.*?)/kommende/(.*)$ events.cgi?template=event_list.html&project=$1&series_name=$2&archive=coming&$3 [L]
|
||||
RewriteRule ^sendereihe/(.*?)/(.*?)/vergangene/(.*)$ events.cgi?template=event_list.html&project=$1&series_name=$2&archive=gone&$3 [L]
|
||||
RewriteRule ^sendereihe/(.*?)/(.*?)/show/$ events.cgi?template=event_redirect.html&project=$1&series_name=$2&limit=1&$3 [L]
|
||||
|
||||
21
website/agenda/templates/event_dashboard.html.js
Normal file
21
website/agenda/templates/event_dashboard.html.js
Normal file
@@ -0,0 +1,21 @@
|
||||
<TMPL_IF use_client_cache>Cache-Control: max-age=3600, must-revalidate
|
||||
</TMPL_IF>Content-type:application/json; charset=UTF-8;
|
||||
Access-Control-Allow-Origin: *
|
||||
|
||||
[<TMPL_LOOP NAME=events>
|
||||
{
|
||||
"id" : "<TMPL_VAR event_id>",
|
||||
"domain" : "https:<TMPL_VAR .source_base_url>",
|
||||
"url" : "https:<TMPL_VAR .source_base_url>programm/sendung/<TMPL_VAR event_id>.html#<TMPL_VAR event_uri escape=url>",
|
||||
"title" : "<TMPL_VAR full_title escape=IJSON>",
|
||||
"excerpt" : "<TMPL_VAR excerpt escape=IJSON>",
|
||||
"start" : "<TMPL_VAR start_date>T<TMPL_VAR start_time>:00",
|
||||
"end" : "<TMPL_VAR end_date>T<TMPL_VAR end_time>:00",
|
||||
"series_name" : "<TMPL_VAR series_name escape=IJSON>",
|
||||
"image_url" : "<TMPL_VAR series_image_url escape=IJSON>",
|
||||
<TMPL_IF recurrence_date>"recurrence" : "<TMPL_VAR recurrence_weekday_name>, <TMPL_VAR recurrence_date_name>, <TMPL_VAR recurrence_time_name>",</TMPL_IF>
|
||||
"topic" : "<TMPL_VAR topic escape=IJSON>",
|
||||
"content" : "<TMPL_VAR content escape=IJSON>"
|
||||
}
|
||||
<TMPL_UNLESS "__last__">,</TMPL_UNLESS>
|
||||
</TMPL_LOOP>]
|
||||
45
website/agenda/templates/event_dashboard_details.html
Normal file
45
website/agenda/templates/event_dashboard_details.html
Normal file
@@ -0,0 +1,45 @@
|
||||
Content-type:text/html; charset=utf-8;
|
||||
Access-Control-Allow-Origin: *
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<TMPL_LOOP events>
|
||||
<div class="event-base">
|
||||
<div class="vevent">
|
||||
<div class="date<TMPL_IF is_running> running</TMPL_IF>">
|
||||
<h1 class="summary title">
|
||||
<TMPL_IF series_name><TMPL_VAR series_name></TMPL_IF>
|
||||
<TMPL_VAR full_title_no_series>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="content description" >
|
||||
<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_image_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 image_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 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>
|
||||
</TMPL_LOOP>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user