<%# locals: expanded %>

<div class="panel panel-default">
  <a href="#template_statistics" class="heading-button"
     data-toggle="collapse" data-parent="usage-accordion"
     data-target="#collapseTemplateStatistics"
     aria-expanded="true" aria-controls="#collapseTemplateStatistics">

    <div class="panel-heading" role="tab" id="headingTemplateStatistics">
      <div class="panel-title pull-left">
        <%= _('Statistics on your Templates') %>
      </div>
      <div class="pull-right">
        <i class="fa fa-<%= expanded ? 'minus' : 'plus' %> pull-right" aria-hidden="true"></i>
      </div>
      <div class="clearfix"></div>
    </div>
  </a>
  <div id="collapseTemplateStatistics"
       class="panel-collapse collapse <%='in' if expanded %>"
       role="tabpanel" aria-labled-by="headingTemplateStatistics">
    <div class="panel-body">

      <%= render partial: 'usage/template_statistics' %>

    </div>
  </div>

</div>
