klandr-server/views/klandringer.ejs
Christoffer Müller Madsen cf743c2861 initial commit
2016-09-17 04:08:42 +02:00

38 lines
838 B
Plaintext

<html>
<head>
<% include head %>
</head>
<body>
<h1>// Referater fra holdets time på DAT3 //</h1>
<ul>
<%
for (var key in data) { %>
<li><a href="#<%=key%>"><%=key%></a>
<ul>
<% for (var i in data[key]) {
var k = data[key][i]; %>
<li><a href="#<%=(k["klandrer"] + k["klandret"] + k["title"]).replace(/\s/g,'')%>"><%=k["klandrer"]%> v. <%=k["klandret"]%> - <i><%=k["title"]%></i></a></li>
<% } %>
</ul>
<% } %>
%>
</ul>
<%
for (var key in data) {
%>
<h2><%=key%></h2>
<%for (var i in data[key]) {
var k = data[key][i]; %>
<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>
<i><%=k["taber"]%> taber!</i>
</p>
<% }
}
%>
<body>
</html>