puppet node classifier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
910 B

  1. {% extends "page.html" %}
  2. {% block title %}Server statistics{% endblock %}
  3. {% block subtitle %}{% endblock %}
  4. {% block buttons %}{% endblock %}
  5. {% block body %}
  6. {% set locals = namespace() %}
  7. {% set locals.total_images = 0 %}
  8. <div>
  9. <table class="pure-table pure-table-bordered">
  10. <thead>
  11. <tr>
  12. <th>year</th>
  13. <th>month</th>
  14. <th>count</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. {% for row in images %}
  19. <tr>
  20. <td>{{row[1]}}</td>
  21. <td>{{row[2]}}</td>
  22. <td>{{"{:,}".format(row[0])}}{% set locals.total_images = locals.total_images + row[0]|int %}</td>
  23. </tr>
  24. {% endfor %}
  25. </tbody>
  26. </table>
  27. <p>{{ "{:,}".format(locals.total_images) }} Files - {{ tsize | filesizeformat }}</p>
  28. </div>
  29. {% endblock %}