klandr-server/views/indholdsfortegnelse.ejs

51 lines
1.5 KiB
Plaintext

<html>
<head>
<% include head %>
</head>
<body>
<h1>// Indholdsfortegnelse for referater //</h1>
<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>
<ul>
<li><a href="/#<%=holdets_time['date']%>Indledende">Indledende bemærkninger</a></li>
<ul>
<%
var prepost_event = holdets_time["prepost_event"];
for (var j in holdets_time["events"]) {
if (j <= prepost_event) {
var e = holdets_time["events"][j];%>
<li><a href="/#<%=(holdets_time['date'] + e['title']).replace(/\s/g,'')%>"><%=e['title']%></a></li>
<%
}
} %>
</ul>
<li><a href="/#<%=holdets_time['date']%>Klandringer">Klandringer</a></li>
<ul>
<% for (var j in holdets_time["klandringer"]) {
var k = holdets_time["klandringer"][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>
<li><a href="/#<%=holdets_time['date']%>Afsluttende">Afsluttende bemærkninger</a></li>
<ul>
<%
var prepost_event = holdets_time["prepost_event"];
for (var j in holdets_time["events"]) {
if (j > prepost_event) {
var e = holdets_time["events"][j];%>
<li><a href="/#<%=(holdets_time['date'] + e['title']).replace(/\s/g,'')%>"><%=e['title']%></a></li>
<%
}
} %>
</ul>
</ul>
<% } %>
%>
</ul>
<!-- Slut indholdsfortegnelse -->
</body>
</html>