dashboard.html.tpl 861 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {{ define "content" }}
  2. <div class="container">
  3. <h1>Home</h1>
  4. <p>
  5. Il database contiene attualmente {{.NumOfTeachers}} docenti,
  6. {{.NumOfClasses}} classi, {{.NumOfSubjects}} materie e
  7. {{.NumOfActivities}} attività.
  8. </p>
  9. <div class="karmen-dashboard-header">
  10. <div class="row">
  11. <div class="col-md-8">
  12. <h2>Problemi</h2>
  13. </div>
  14. <div class="col-md-4">
  15. <div class="btn-group float-right">
  16. <a href="/?reload_issues=true" class="btn btn-primary">
  17. <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
  18. Aggiorna
  19. </a>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. {{if .Issues}}
  25. <ul class="list-group">
  26. {{range $issue := .Issues}}
  27. <li class="list-group-item">{{$issue.Description}}</li>
  28. {{end}}
  29. </ul>
  30. {{else}}
  31. <p>La base di dati è coerente.</p>
  32. {{end}}
  33. </div>
  34. {{ end }}