<% var containerId = m.lib.containerId, tuix = m.tuix, lib = m.lib; zenario.sendSignal('eventListPreDisplay', {containerId: containerId, microTemplate: 'fea_list_blocks', tuix: tuix, lib: lib}); %> {{m.lib.pMicroTemplate('dev_tools', m)}}
{{m.tuix.header_html}} <% if (m.tuix.title !== undefined) { %> <% if (m.tuix.title_tags) { %> <{{m.tuix.title_tags|e}}>{{m.tuix.title|e}} <% } else { %>

{{m.tuix.title|e}}

<% } %> <% } %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, 'back')) { %> {{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, 'back')}} <% } %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, 'top')) { %> {{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, 'top')}} <% } %>
<% var ci, col, chi, child, bi, button, oi, log, logName, gi, lg, lgName, ii, item, tag, headerId = false, firstItem = true; %> {{m.lib.pMicroTemplate('list_search', m)}} <% if (m.tuix.item_count_message && m.tuix.__item_count__ > 1) { %>

{{m.tuix.item_count_message.replace("[[count]]", m.tuix.__item_count__)|e}}

<% } %> <% if (m.tuix.subtitle !== undefined) { %>

{{m.tuix.subtitle|e}}

<% } %> <% if (m.thus.sortedCollectionButtons.length) { %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, false) && !_.isEmpty(m.tuix.columns)) { %> {{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, false)}} <% } %>
<% } %> <% if (!_.isEmpty(m.tuix.columns)) { %> <% foreach (m.thus.sortedListOuterGroupings as oi => logName) { %> <% log = m.tuix.list_outer_groupings && m.tuix.list_outer_groupings[logName] || {}; %> <% if (log.label) { %>

{{log.label|escape}}

<% } %> <% foreach (m.thus.sortedListGroupings as gi => lgName) { %> <% lg = m.tuix.list_groupings && m.tuix.list_groupings[lgName] || {}; %> <% if (m.tuix.list_outer_groupings && lg.list_outer_grouping != logName) { %> <% continue; %> <% } %> <% if (lg = m.tuix.list_groupings && m.tuix.list_groupings[lgName]) { %>
{{lg.label|escape}}
<% } %>
<% foreach (m.thus.sortedItems as ii => item) { %> <% if (m.tuix.list_groupings && item.list_grouping != lgName) { %> <% continue; %> <% } %> <% if (m.tuix.has_headers) { %> <% if (item.header_id != headerId) { %> <% if (headerId !== false) { %>
<% } %> <% headerId = item.header_id; %>

{{item.header_name|e}}

<% } %> <% } %>
<% var sameRow = false; %> <% foreach (m.thus.sortedColumns as ci => col) { %> <% if (item[col.id] === undefined) { continue; } %> <% if (m.thus.sortedColumns[+ci + 1] && m.thus.sortedColumns[+ci + 1].same_row && !sameRow) { %> <% sameRow = true; %>
<% } %> <% tag = col.tag ? col.tag : 'p'; %>
<% if (m.lib.mode == 'view_data_pool_block' && item[col.id]['field_type'] =='metric') { %>
<% } else if(m.lib.mode == 'view_data_pool_block' && item[col.id]['field_type'] =='real_time') { %>
<% } else {%>
<% } %> <% if (m.lib.mode == 'view_data_pool_block') { %>
{{col.blocks_title|e}}
<% } else { %> {{col.blocks_title|e}} <% } %> {{m.lib.pMicroTemplate('list_cell', {col: col, item: item})}} <% if (item.cell_tooltips && item.cell_tooltips[col.id]) { %> <% } %>
<% if (col.same_row && sameRow && (!m.thus.sortedColumns[+ci + 1] || !m.thus.sortedColumns[+ci + 1].same_row)) { %> <% sameRow = false; %>
<% } %> <% } %> <% if (item.__sortedItemButtons.length) { %>
{{m.lib.pMicroTemplate('button', item.__sortedItemButtons)}}
<% } %>
<% } %> <% if (!zenarioL.mobile && m.lib.mode != 'view_data_pool_block') { m.lib.after(function() { var maxHeight = 0; $('#' + m.lib.containerId + ' .zfea_block_list_wrap .zfea_block') .each(function() { maxHeight = Math.max(maxHeight, $(this).height()); }) .height(maxHeight); }); } %> <% if (m.thus.sortedItems.length == 0) { %> <% if (m.tuix.no_items_message) { %>
{{m.tuix.no_items_message}}
<% } %> <% } %>
<% } %> <% } %> <% } %> {{m.lib.pMicroTemplate('list_pagination', m)}} {{m.tuix.footer_html}}
<% m.lib.after(function() { zenario.sendSignal('eventListPostDisplay', {containerId: containerId, microTemplate: 'fea_list_blocks', tuix: tuix, lib: lib}); }); %>