%
var ci,
col,
sortableCols = _.filter(m.thus.sortedColumns, function(col) { return !!(col.sort_asc || col.sort_desc); }),
showSortControls = m.lib.checkThingEnabled('sort_list') && sortableCols.length,
sortVal = showSortControls && zenario.engToBoolean(m.thus.key('sortDesc')) + m.thus.key('sortCol'),
showSearch = !m.tuix.hide_search_bar;
%>
<% if (showSortControls || showSearch) { %>
<% if (showSearch) { %>
<% } %>
<% if (showSortControls) { %>
<% } %>
<% } %>
<% if (zenarioT.find(m.thus.sortedCollectionButtons, 'search')) { %>
{{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, 'search')}}
<% } %>