<% _.each(groupedTimelineData, function(yearItems, year) { %>

<%= year %>

<% _.each(yearItems, function(monthItems, month) { %> <% var monthSelectedCount = 0; var monthTotalCount = monthItems.length; _.each(monthItems, function(item) { if (_.contains(selectedItemsArray, item.checksum)) { monthSelectedCount++; } }); var monthAllSelected = (monthSelectedCount === monthTotalCount && monthTotalCount > 0); var monthPartialSelected = (monthSelectedCount > 0 && monthSelectedCount < monthTotalCount); var monthCheckboxClass = monthPartialSelected ? 'checkbox-custom-label-part' : ''; %>
checked<% } %>/>
<%= month %>
<% _.each(monthItems, function(item, index) { var itemId = item.checksum; var isChecked = _.contains(selectedItemsArray, itemId); var className = item.isLandscape ? 'landscape' : 'portrait'; var url = item.thumbnail_url || item.thumbNail; var mediaType = item.uiMediaType || item.mimeType; var isVideo = mediaType && mediaType.indexOf('video') >= 0; var isAudio = mediaType && mediaType.indexOf('audio') >= 0; var defaultUrl = isVideo ? window.svgSrcHome["error_no_video"] : (isAudio ? window.svgSrcHome["generic_album_3"] : window.svgSrcHome["error_no_photo"]); var iconClass = isVideo ? 'video-icon' : ''; var favoriteClass = item.favorite ? 'fa-star selected' : 'fa-star'; var restrictedClass=''; if(IS_IP_RESTRICTED){ restrictedClass = RESTRICTED_CLASS} %>
<% if (item.mimeType && item.mimeType.indexOf('application') >= 0) { %>
<%= _.escape(item.name || '') %>
<%= item.calcSize || '' %>
<% } %>
checked<% } %>/>
<% if (contentType === 'album-items') { %> <% } else { %> <% } %>
<% }); %>
<% }); %> <% }); %>