<%namespace name='static' file='static_content.html'/>
<%! from django.utils.translation import ugettext as _ %>

<%inherit file="main.html" />

<section class="container about">

  <section class="basic_stats">

    <div class="edx_summary">
      <h2>${_("{platform_name}-wide Summary").format(platform_name=settings.PLATFORM_NAME)}</h2>
      <table style="margin-left:auto;margin-right:auto;width:50%">
      % for key in results["scalars"]:
        <tr>
          <td>${key}</td>
          <td>${results["scalars"][key]}</td>
        </tr>
      % endfor
      </table>
    </div>

    % for table in results["tables"]:
    <br/>
    <div class="table_display">
      <h2>${table}</h2>
      <table style="margin-left:auto;margin-right:auto;width:50%">
        <tr>
          % for column in results["tables"][table][0]:
          <td><b>${column}</b></td>
          % endfor
        </tr>
        % for row in results["tables"][table][1:]:
        <tr>
          % for column in row:
          <td>${column}</td>
          % endfor
        </tr>
        % endfor
      </table>

    </div>
    % endfor
  </section>
</section>

