yandex_metrika_period_visitors.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% load i18n %}
  2. {% if module.error %}
  3. <ul>
  4. <li>
  5. {{ module.error }}
  6. </li>
  7. </ul>
  8. {% elif module.children %}
  9. <table class="table">
  10. <thead>
  11. <tr>
  12. <th>{% trans "Date" %}</th>
  13. <th>{% trans "visitors" as label %}{{ label|capfirst }}</th>
  14. <th>{% trans "visits" as label %}{{ label|capfirst }}</th>
  15. <th>{% trans "views" as label %}{{ label|capfirst }}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {% for data in module.children %}
  20. <tr>
  21. <th>{{ data.0 }}</th>
  22. <td width="1" align="center">{{ data.1.visitors }}</td>
  23. <td width="1" align="center">{{ data.1.visits }}</td>
  24. <td width="1" align="center">{{ data.1.page_views }}</td>
  25. </tr>
  26. {% endfor %}
  27. </tbody>
  28. </table>
  29. {% else %}
  30. <ul>
  31. <li>
  32. {% trans "Nothing to show" %}
  33. </li>
  34. </ul>
  35. {% endif %}