stats.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {% load cycle from future %}
  2. {% load cache %}
  3. {% cache 60 dev-dash-by-arch %}
  4. <div id="dash-by-arch" class="box">
  5. <h2>Stats by Architecture</h2>
  6. <table id="stats-by-arch" class="results dash-stats">
  7. <thead>
  8. <tr>
  9. <th class="key">Arch</th>
  10. <th># Packages</th>
  11. <th># Flagged</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for arch in arches %}
  16. <tr class="{% cycle 'odd' 'even' %}">
  17. <td>{{ arch.name }}</td>
  18. <td><a href="/packages/?arch={{ arch.name }}"
  19. title="View all packages for the {{ arch.name }} architecture">
  20. <strong>{{ arch.total_ct }}</strong> packages</a></td>
  21. <td><a href="/packages/?arch={{ arch.name }}&amp;flagged=Flagged"
  22. title="View all flagged packages for the {{ arch.name }} architecture">
  23. <strong>{{ arch.flagged_ct }}</strong> packages</a></td>
  24. </tr>
  25. {% endfor %}
  26. </tbody>
  27. </table>
  28. </div>{# #dash-by-arch #}
  29. {% endcache %}
  30. {% cache 60 dev-dash-by-repo %}
  31. <div id="dash-by-repo" class="box">
  32. <h2>Stats by Repository</h2>
  33. <table id="stats-by-repo" class="results dash-stats">
  34. <thead>
  35. <tr>
  36. <th class="key">Repository</th>
  37. <th># Packages</th>
  38. <th># Flagged</th>
  39. <th># Maintainers</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for repo in repos %}
  44. <tr class="{% cycle 'odd' 'even' %}">
  45. <td>{{ repo.name }}</td>
  46. <td><a href="/packages/?repo={{ repo.name }}"
  47. title="View all packages in the {{ repo.name }} repository">
  48. <strong>{{ repo.total_ct }}</strong> packages</a></td>
  49. <td><a href="/packages/?repo={{ repo.name }}&amp;flagged=Flagged"
  50. title="View all flagged packages in the {{ repo.name }} repository">
  51. <strong>{{ repo.flagged_ct }}</strong> packages</a></td>
  52. <td><strong>{{ repo.maintainer_ct }}</strong> maintainers</td>
  53. </tr>
  54. </tr>
  55. {% endfor %}
  56. </tbody>
  57. </table>
  58. </div>{# dash-by-arch #}
  59. {% endcache %}
  60. {% cache 60 dev-dash-by-developer %}
  61. <div id="dash-by-developer" class="box">
  62. <h2>Stats by Developer</h2>
  63. {% if perms.main.change_package %}
  64. <p><a href="/packages/stale_relations/">Look for stale relations</a></p>
  65. {% endif %}
  66. <table id="stats-by-maintainer" class="results dash-stats">
  67. <thead>
  68. <tr>
  69. <th class="key">Maintainer</th>
  70. <th># Maintained</th>
  71. <th># Flagged</th>
  72. <th># Last Packager</th>
  73. </tr>
  74. <tr class="even">
  75. <td><em>Orphan/Unknown</em></td>
  76. <td><a href="/packages/?maintainer=orphan"
  77. title="View all orphan packages">
  78. <strong>{{ orphan.package_count }}</strong> packages</a>
  79. </td>
  80. <td><a href="/packages/?maintainer=orphan&amp;flagged=Flagged"
  81. title="View all flagged orphan packages">
  82. <strong>{{ orphan.flagged_count }}</strong> packages</a>
  83. </td>
  84. <td><a href="/packages/?packager=unknown"
  85. title="View all packages last updated by unknown">
  86. <strong>{{ orphan.updated_count }}</strong> packages</a>
  87. </td>
  88. </tr>
  89. </thead>
  90. <tbody>
  91. {% for maint in maintainers %}
  92. <tr class="{% cycle 'odd' 'even' %}">
  93. <td>{{ maint.get_full_name }}</td>
  94. <td><a href="/packages/?maintainer={{ maint.username }}"
  95. title="View all packages maintained by {{ maint.get_full_name }}">
  96. <strong>{{ maint.package_count }}</strong> packages</a>
  97. </td>
  98. <td><a href="/packages/?maintainer={{ maint.username }}&amp;flagged=Flagged"
  99. title="View all flagged packages maintained by {{ maint.get_full_name }}">
  100. <strong>{{ maint.flagged_count }}</strong> packages</a>
  101. </td>
  102. <td><a href="/packages/?packager={{ maint.username }}"
  103. title="View all packages last updated by {{ maint.get_full_name }}">
  104. <strong>{{ maint.updated_count }}</strong> packages</a>
  105. </td>
  106. </tr>
  107. {% endfor %}
  108. </tbody>
  109. </table>
  110. </div>{# #dash-by-developer #}
  111. {% endcache %}