klandr-server/views/klandringer.ejs
2016-09-17 13:27:44 +02:00

42 lines
1.1 KiB
Plaintext

<html>
<head>
<% include head %>
</head>
<body>
<h1>// Referater fra holdets time på DAT3 //</h1>
<ul>
<%
for (var i in data) {
var holdets_time = data[i]; %>
<li><a href="#<%=holdets_time['date']%>"><%=holdets_time['date']%> - <%=holdets_time['subtitle']%></a>
<ul>
<% for (var j in holdets_time["data"]) {
var k = holdets_time["data"][j]; %>
<li><a href="#<%=String(k['klandrer'] + k['klandret'] + k['title']).replace(/\s/g,'')%>"><%=k['klandrer']%> v. <%=k['klandret']%> - <i><%=k['title']%></i></a></li>
<% } %>
</ul>
<% } %>
%>
</ul>
<%
for (var i in data) {
var holdets_time = data[i];
%>
<h2><%=holdets_time['date']%> kl. <%=holdets_time['time']%> - <%=holdets_time['subtitle']%></h2>
<%for (var j in holdets_time['data']) {
var k = holdets_time["data"][j]; %>
<a name="<%=(k["klandrer"] + k["klandret"] + k["title"]).replace(/\s/g,'')%>"></a><h4><%=k["klandrer"]%> v. <%=k["klandret"]%> - <i><%=k["title"]%></i></h4>
<p>
<%-k["description"]%>
<br><br>
<% if (k["taber"] != "") { %>
<i><%=k["taber"]%> taber!</i>
<% } %>
</p>
<% }
}
%>
<body>
</html>