dashboard-statistics.html.twig 1.3 KB

123456789101112131415161718192021222324
  1. {% if authorize(['admin.statistics', 'admin.super']) %}
  2. <div id="popularity" class="dashboard-item dashboard-right" data-chart-name="popularity" data-chart-type="bar" data-chart-data="{{ {'series': [popularity.getDailyChartData['data']], 'labels': popularity.getDailyChartData['labels']}|json_encode|e('html_attr') }}">
  3. <div class="primary-accent default-box-shadow">
  4. <h1>{{ "PLUGIN_ADMIN.STATISTICS"|tu }}</h1>
  5. <div class="admin-statistics-chart">
  6. <div class="ct-chart chart-loader"><i class="fa fa-refresh fa-spin"></i></div>
  7. <div class="flush-bottom button-bar stats-bar">
  8. <span class="stat">
  9. <b>{{ popularity.getDailyTotal }}</b>
  10. <i>{{ "PLUGIN_ADMIN.TODAY"|tu }}</i>
  11. </span>
  12. <span class="stat">
  13. <b>{{ popularity.getWeeklyTotal }}</b>
  14. <i>{{ "PLUGIN_ADMIN.WEEK"|tu }}</i>
  15. </span>
  16. <span class="stat">
  17. <b>{{ popularity.getMonthlyTotal }}</b>
  18. <i>{{ "PLUGIN_ADMIN.MONTH"|tu }}</i>
  19. </span>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. {% endif %}