<% 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 (m.tuix.search_button_message) { %> <% } else { %> <% } %> <% if (m.lib.showClearSearchButton()) { %> <% } %>
<% } %> <% if (showSortControls) { %> <% } %>
<% } %> <% if (zenarioT.find(m.thus.sortedCollectionButtons, 'search')) { %>
{{m.lib.pMicroTemplate('button', m.thus.sortedCollectionButtons, 'search')}}
<% } %>