<%! import splunk.appserver.mrsparkle.lib.i18n as i18n import splunk.util %>

Showing top ${i18n.format_number(count)} of ${i18n.format_number(field_summary.get('count', -1))} values

% for mode in field_summary.get('modes', [])[0:count]: <% percent = float(mode.get('count', 0))/float(field_summary.get('count', 0)) vanity_percent = i18n.format_percent(percent) width_percent = int(percent*100) %> % endfor
${splunk.util.smartTrim(mode.get('value', 'undefined'), 35)} (${'' if mode['isExact'] else '≥'}${i18n.format_number(mode.get('count', -1))})
${vanity_percent}