stats.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% extends "oscar/base.html" %}
  2. {% block title %}{{ _('stats') }} - {% endblock %}
  3. {% block content %}
  4. <div class="container-fluid">
  5. <h1>{{ _('Engine stats') }}</h1>
  6. <div class="row">
  7. {% for stat_name,stat_category in stats %}
  8. <div class="col-xs-12 col-sm-12 col-md-6">
  9. <h3>{{ stat_name }}</h3>
  10. <div class="container-fluid">
  11. {% for engine in stat_category %}
  12. <div class="row">
  13. <div class="col-sm-4 col-md-4">{{ engine.name }}</div>
  14. <div class="col-sm-8 col-md-8">
  15. <div class="progress">
  16. <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ '%i'|format(engine.avg) }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ engine.percentage }}%;">
  17. {{ '%.02f'|format(engine.avg) }}
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. {% endfor %}
  23. {% if not stat_category %}
  24. <div class="col-sm-12 col-md-12">
  25. {% include 'oscar/messages/no_data_available.html' %}
  26. </div>
  27. {% endif %}
  28. </div>
  29. </div>
  30. {% endfor %}
  31. </div>
  32. </div>
  33. {% endblock %}