templates: fix javascript escaping

This commit is contained in:
Milan
2022-01-27 21:51:50 +01:00
parent f90f71c529
commit b707cbe449
27 changed files with 105 additions and 102 deletions

View File

@@ -9,18 +9,31 @@
</head>
<body>
<style>
div.event div.title{
display:grid;
grid-template-columns: 3ch 5ch 1ch 1fr;
}
div.event div.title div{
display:inline;
}
</style>
<TMPL_LOOP NAME=events>
<a href="<TMPL_VAR cache_base_url>/<TMPL_VAR .controllers.event>/<TMPL_VAR event_id>.html#<TMPL_VAR event_uri escape=url>"
>
<div id="event_playlist_<TMPL_VAR event_id>" class="event" title="<TMPL_VAR full_title><TMPL_IF excerpt>. <TMPL_VAR excerpt></TMPL_IF>">
<div id="event_playlist_<TMPL_VAR event_id>" class="event" title="<TMPL_VAR full_title><TMPL_IF excerpt>. <TMPL_VAR excerpt escape=url></TMPL_IF>">
<TMPL_COMMENT>
<div class="icon">
<img src="<TMPL_VAR icon>"></img>
</div>
</TMPL_COMMENT>
<div class="title">
<TMPL_VAR weekday_short_name> <TMPL_VAR start_time_name> -
<TMPL_IF series_name><TMPL_VAR series_name><TMPL_ELSE><TMPL_VAR title></TMPL_IF>
<div><TMPL_VAR weekday_short_name></div>
<div><TMPL_VAR start_time_name></div>
<div>-</div>
<div><TMPL_IF series_name><TMPL_VAR series_name><TMPL_ELSE><TMPL_VAR title></TMPL_IF></div>
</div>
</div>
</a>