klandr-server/views/klandringer.ejs

95 lines
2.2 KiB
Plaintext
Raw Normal View History

2016-09-17 02:08:42 +00:00
<html>
<head>
<% include head %>
2016-09-17 22:01:39 +00:00
<title>Referater // Klandr</title>
2016-09-17 02:08:42 +00:00
</head>
<body>
<h1>// Referater fra holdets time på DAT3 //</h1>
<h3><a href="/toc">Fuld indholdsfortegnelse</a></h3>
2016-09-17 02:08:42 +00:00
<ul>
<!-- Print indholdsfortegnelse -->
<%
for (var i in data) {
var holdets_time = data[i]; %>
<li><a href="#<%=holdets_time['date']%>"><%=holdets_time['date']%> - <%=holdets_time['subtitle']%></a>
2016-09-17 02:08:42 +00:00
<% } %>
%>
</ul>
<!-- Slut indholdsfortegnelse -->
2016-09-17 02:08:42 +00:00
<!-- Start holdets timer -->
2016-09-17 02:08:42 +00:00
<%
for (var i in data) {
var holdets_time = data[i];
2016-09-17 02:08:42 +00:00
%>
<a name="<%=holdets_time['date']%>"></a><h2><%=holdets_time['date']%> kl. <%=holdets_time['time']%> - <%=holdets_time['subtitle']%></h2>
<!-- Print punkterne før klandringer -->
2016-09-17 22:01:39 +00:00
<a name="<%=holdets_time['date']%>Indledende"></a>
<%
var prepost_event = holdets_time["prepost_event"];
var prev_eventid;
for (var j in holdets_time["events"]) {
if (j <= prepost_event) {
prev_eventid = j;
var e = holdets_time["events"][j];
%>
<a name="<%=(holdets_time["date"] + e["title"]).replace(/\s/g,'')%>"></a><h4><%=e["title"]%></h4>
<p>
<%-e["description"]%>
</p>
<%
}
}
%>
<!-- Slut før -->
<!-- Print klandringer -->
<a name="<%=holdets_time['date']%>Klandringer"></a><h3>Klandringer</h3>
<%for (var j in holdets_time["klandringer"]) {
var k = holdets_time["klandringer"][j]; %>
2016-09-17 02:08:42 +00:00
<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>
2016-09-17 02:08:42 +00:00
</p>
<% } %>
<!-- Slut klandringer -->
<%
}%>
<!-- Print punkterne efter klandringer -->
<a name="<%=holdets_time['date']%>Afsluttende"></a><h3>Afsluttende bemærkninger</h3>
<%
var prepost_event = holdets_time["prepost_event"];
for (var j in holdets_time["events"]) {
if (j > prepost_event) {
var e = holdets_time["events"][j];
%>
<a name="<%=(holdets_time["date"] + e["title"]).replace(/\s/g,'')%>"></a><h4><%=e["title"]%></h4>
<p>
<%-e["description"]%>
</p>
<%
}
}
2016-09-17 02:08:42 +00:00
%>
<%
}
%>
<!-- Slut holdets timer -->
2016-09-17 02:08:42 +00:00
<body>
</html>