<% m.__sortableCols = _.filter(m.thus.sortedColumns, function(col) { return !!(col.sort_asc || col.sort_desc); }); m.__showSortControls = m.lib.checkThingEnabled("sort_list") && m.__sortableCols.length; m.__showSearch = !m.tuix.hide_search_bar; %> <% if (m.__showSortControls || m.__showSearch) { %>
<% if (m.__showSearch) { %>
{{m.lib.pMicroTemplate('list_search', m)}}
<% } %> <% if (m.__showSortControls) { %>
{{m.lib.pMicroTemplate('list_sort', m)}}
<% } %>
<% } %> <% if (zenarioT.find(m.thus.sortedCollectionButtons, 'search')) { %>
{{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, 'search')}}
<% } %>