<%

var n = locals.demoCount || 0;
var on = !!locals.showDemo;
%>
<% if (n) { %>
  <a class="btn btn-sm<%= on ? ' btn-primary' : '' %>" href="?demo=<%= on ? '0' : '1' %>"
     title="<%= on ? 'Currently including ' + n + ' demo client' + (n > 1 ? 's' : '') + ' in these figures' : n + ' demo client' + (n > 1 ? 's are' : ' is') + ' excluded from these figures' %>">
    <svg class="ic" viewBox="0 0 16 16" fill="none">
      <% if (on) { %><path d="M1 8s2.5-5 7-5 7 5 7 5-2.5 5-7 5-7-5-7-5z" stroke="currentColor" stroke-width="1.4"/><circle cx="8" cy="8" r="2" stroke="currentColor" stroke-width="1.4"/>
      <% } else { %><path d="M2.5 2.5l11 11M6.6 6.7A2 2 0 0 0 8 10a2 2 0 0 0 1.4-.6" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M4.2 4.6C2.4 5.9 1 8 1 8s2.5 5 7 5c1.3 0 2.4-.3 3.4-.8M6.6 3.2A7.6 7.6 0 0 1 8 3c4.5 0 7 5 7 5a13 13 0 0 1-2 2.6" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><% } %>
    </svg>
    <%= on ? 'Demo data shown' : 'Demo data hidden' %>
  </a>
<% } %>
