forked from parisjs/parisjs-website
/
template_meetup.html
14 lines (10 loc) · 1.28 KB
/
template_meetup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<li class="meetup"><a href="#"><%= title %></a></li>
<li class="meetup-content"><% talks.forEach(function(talk) { %>
<ul>
<li class="avatar"><% if (talk.authors[0].avatar) { %><img alt="twitter avatar" src="<%= talk.authors[0].avatar %>"><% } %></li>
<li class="titleTalk"><%= talk.title %></li>
<li class="authorTalk">By: <% for (var i=0; i<talk.authors.length; i++) { var author = talk.authors[i]; var end = (i == talk.authors.length - 1); %><a href="<%= author.url %>"><%= author.name %></a><% if (!end) print(" and "); } %></li>
<li class="descTalk">Here are the <% if (talk.projects.length == 1) { %><a href="<%= talk.projects[0] %>">project</a><% } %><% if (talk.slides.length == 1) { if (talk.slides[0] == "#") print('<s>'); %><a href="<%= talk.slides[0] %>">Slides</a><%if (talk.slides[0] == "#") print('</s>'); } %><% if (talk.videos.length > 0) { %>
and the <% for (var j=0; j<talk.videos.length; j++) { %><a href="<%= talk.videos[j] %>">video<% if (talk.videos.length > 1) print(' part.'+ (j+1)); %></a><% } }%>!</li>
</ul><% }) %>
</li>