(function ($, document, apiClient) { function renderRecordings(page, recordings) { var html = ''; var cssClass = "detailTable"; html += '
'; html += ' | Name | '; html += 'Channel | '; html += 'Date | '; html += 'Start | '; html += 'End | '; html += 'Status | '; html += '
---|---|---|---|---|---|---|
'; html += ''; html += ''; html += ''; html += ' | '; html += '' + (recording.Name || '') + ' | '; html += '' + (recording.ChannelName || '') + ' | '; var startDate = recording.StartDate; try { startDate = parseISO8601Date(startDate, { toLocal: true }); } catch (err) { } html += '' + startDate.toLocaleDateString() + ' | '; html += '' + LiveTvHelpers.getDisplayTime(recording.StartDate) + ' | '; html += '' + LiveTvHelpers.getDisplayTime(recording.EndDate) + ' | '; html += '' + (recording.Status || '') + ' | '; html += '