$(document).ready(function() {

  var sessionTemplate = $('#eventTemplate');

  // Load list of sessions
  $.get('/event/api/session', function(sessions) {
    $(sessions).each(function(i) {
      var session = sessions[i];
      var html = sessionTemplate.clone();
      html.find('.title').text(session.title);
      html.find('.date').text(new Date(session.date).toLocaleDateString());
      html.find('.speaker').text(session.speaker_name);
      html.find('.description').text(session.description);
      html.appendTo('.list-sessions').removeClass('hidden');
    });
  });

}); 

@@ -71,16 +71,263 @@
 ate');%0A%0A
+  // Walk through attached files and look for given type%0A  var getFileByType = function(session, type) %7B%0A    for (var i in session.files) %7B%0A      var file = session.files%5Bi%5D;%0A      if (file.type == type) %7B%0A        return file;%0A      %7D%0A    %7D%0A  %7D;%0A%0A
   // Loa
@@ -345,16 +345,16 @@
 essions%0A
-
   $.get(
@@ -460,24 +460,85 @@
 essions%5Bi%5D;%0A
+      var screenshot = getFileByType(session, 'screenshot');%0A
       var ht
@@ -742,24 +742,24 @@
 aker_name);%0A
-
       html.f
@@ -805,16 +805,161 @@
 ption);%0A
+      if (screenshot != undefined) %7B%0A        // html.find('.session-screenshot').css('background-image', 'url(' + screenshot.url + ')');%0A      %7D%0A
       ht

Check if screenshot is provided for session and set as image (inactive)