report.erb 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <!--
  3. This file is part of Resumer
  4. Copyright (C) 2016 Sylvia van Os
  5. Resumer is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as
  7. published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Affero General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <title>R&eacute;sum&eacute;r</title>
  19. <link rel="stylesheet" type="text/css" href="templates/common.css">
  20. <link rel="stylesheet" type="text/css" href="templates/report.css">
  21. </head>
  22. <body>
  23. {% autoescape %}
  24. <div id="content">
  25. <div class="container">
  26. <h1>{{ name }}</h1>
  27. <div class="left">
  28. <h2>Services</h2>
  29. </div>
  30. <div class="right">
  31. <ul>
  32. {% for service in services %}
  33. <li>{{ service.name }}: <a href="{{ service.url }}" target="_blank">{{ service.username }}</a></li>
  34. {% endfor %}
  35. </ul>
  36. </div>
  37. </div>
  38. {% if repositories is empty %}
  39. <div class="container">
  40. <div class="right">
  41. <p><em>This user hasn't done anything yet. There is only silence...</em></p>
  42. </div>
  43. </div>
  44. {% else %}
  45. <div class="container">
  46. <div class="left">
  47. <h2>Languages</h2>
  48. </div>
  49. <div class="right">
  50. <ul class="twocolumn">
  51. {% for language in languages|sort %}
  52. <li>{{ language.name }} ({{ (language.count / repositories|length * 100)|round }}%)</li>
  53. {% endfor %}
  54. </ul>
  55. </div>
  56. </div>
  57. <div class="container">
  58. <div class="left">
  59. <h2>Popular Repositories</h2>
  60. </div>
  61. <div class="right">
  62. {% for repo in repositories[0:5] %}
  63. <div class="container">
  64. <div class="date">{{ repo.created.year }}{% if repo.created.year != repo.updated.year %} - {{ repo.updated.year }}{% endif %}</div>
  65. <h3 class="repotitle">{{ repo.name }}</h3>
  66. <small>{{ repo.language }} - <a href="{{ repo.repo }}" target="_blank">Repository</a>{% if repo.homepage %} - <a href="{{ repo.homepage }}" target="_blank">Homepage</a>{% endif %}</small>
  67. <p>{{ repo.description }}</p>
  68. <ul class="threecolumn">
  69. <li>{{ repo.stars }} stars</li>
  70. <li>{{ repo.watchers }} watchers</li>
  71. <li>{{ repo.forks }} forks</li>
  72. </ul>
  73. </div>
  74. {% endfor %}
  75. </div>
  76. </div>
  77. {% endif %}
  78. <div class="container">
  79. <div class="left">
  80. <h2>About</h2>
  81. </div>
  82. <div class="right">
  83. <p>
  84. This overview was automatically generated by
  85. <a href="source.html">R&eacute;sum&eacute;r</a>, the
  86. Free as in Freedom r&eacute;sum&eacute; generator.
  87. </p>
  88. </div>
  89. </div>
  90. </div>
  91. {% endautoescape %}
  92. </body>
  93. </html>