<% for ( let ai = 0; ai < apps.length; ai++ ) { %>
<%= apps[ ai ].id %>
<% if ( 'open' === apps[ ai ].state ) { %>
<%=raw apps[ ai ].isOver() ? 'stattgefunden' : 'Findet statt' %>
<% } else if ( 'draft' === apps[ ai ].state ) { %>
Entwurf
<% } else if ( 'cancelled' === apps[ ai ].state ) { %>
Abgesagt
<% } %>
<% for ( var ci = 0; ci < apps[ ai ].category_ids_js.length; ci++ ) { %>
<%=raw '' + activeGroup.getCourseCategoryNameById( apps[ ai ].category_ids_js[ ci ] ) + '' %>
<% } %>
<%= apps[ ai ].subject ? apps[ ai ].subject : '---' %>
<%= apps[ ai ].getMomentOfStart().format( 'dddd, DD. MMMM YYYY' ) %>
<%= apps[ ai ].getMomentOfStart().format( 'HH:mm' ) %> - <%= apps[ ai ].getMomentOfEnd().format( 'HH:mm' ) %>
<%= apps[ ai ].location ? apps[ ai ].location : '---' %>