admin_dashboard.html 1.11 KB
Newer Older
John Hess committed
1
<%namespace name='static' file='static_content.html'/>
2
<%! from django.utils.translation import ugettext as _ %>
John Hess committed
3 4 5 6 7 8 9 10

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

<section class="container about">

  <section class="basic_stats">

    <div class="edx_summary">
11
      <h2>${_("{platform_name}-wide Summary").format(platform_name=settings.PLATFORM_NAME)}</h2>
John Hess committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
      <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%">
27 28 29 30 31 32
        <tr>
          % for column in results["tables"][table][0]:
          <td><b>${column}</b></td>
          % endfor
        </tr>
        % for row in results["tables"][table][1:]:
John Hess committed
33 34 35 36 37 38 39 40 41 42 43 44 45
        <tr>
          % for column in row:
          <td>${column}</td>
          % endfor
        </tr>
        % endfor
      </table>

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