repo.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. {% if wikis %}
  2. <div class="project_readme">
  3. {% if repo_wiki %}
  4. {{ repo_wiki }}
  5. {% else %}
  6. <p style="background: red;">This project doesn't have a wiki.</p>
  7. {% endif %}
  8. </div>
  9. {% elif about %}
  10. <div class="project_readme">
  11. {% if repo_readme %}
  12. {{ repo_readme }}
  13. {% else %}
  14. <p style="background: red;">This project doesn't have a README file.</p>
  15. {% endif %}
  16. </div>
  17. {% elif summary %}
  18. <table class="laboratory_list">
  19. <tr>
  20. <td>Idle</td>
  21. <td>{{ repo_idle }}</td>
  22. </tr>
  23. <tr>
  24. <td>Git clone URL</td>
  25. <td>{{ repo_cloneurl }}</td>
  26. </tr>
  27. <tr>
  28. <td></td>
  29. <td>{{ repo_clonessh }}</td>
  30. </tr>
  31. </table>
  32. <table class="laboratory_list">
  33. {% if repo_branches_list %}
  34. <tr>
  35. <th>Branch</th>
  36. <th>Commit message</th>
  37. <th>Author</th>
  38. <th>Age</th>
  39. </tr>
  40. {{ repo_branches_list }}
  41. {% endif %}
  42. </table>
  43. <table class="laboratory_list">
  44. {% if repo_tags_list %}
  45. <tr>
  46. <th>Tag</th>
  47. <th>Commit message</th>
  48. <th>Author</th>
  49. <th>Age</th>
  50. </tr>
  51. {{ repo_tags_list }}
  52. {% endif %}
  53. </table>
  54. {% elif tree %}
  55. {% if repo_tree %}
  56. <table class="laboratory_list">
  57. <tr>
  58. <th>Mode</th>
  59. <th>Name</th>
  60. <th>Type</th>
  61. </tr>
  62. {{ repo_tree }}
  63. </table>
  64. {% else %}
  65. <table class="laboratory_blob">
  66. <tr>
  67. <td class="laboratory_bloblines">
  68. <pre>
  69. {{ repo_bloblines }}
  70. </pre>
  71. </td>
  72. <td class="laboratory_blobfile">
  73. <pre>
  74. {{ repo_blob }}
  75. </pre>
  76. </td>
  77. </tr>
  78. </table>
  79. {% endif %}
  80. {% elif issues %}
  81. {% if repo_issueslist %}
  82. <ul class="laboratory_issuestabs">
  83. <li><a href="?state=all">All issues</a></li>
  84. <li><a href="?state=opened">Open issues</a></li>
  85. <li><a href="?state=closed">Closed issues</a></li>
  86. </ul>
  87. <table class="laboratory_list laboratory_issues">
  88. <tr>
  89. <th>Id</th>
  90. <th>Name</th>
  91. <th>Author</th>
  92. <th>State</th>
  93. <th>Idle</th>
  94. </tr>
  95. {{ repo_issueslist }}
  96. </table>
  97. <a href="?state={{ repo_issuesstate }}&page={{ repo_issuesnextpage }}">Next →</a>
  98. {% elif repo_issue %}
  99. <h3>{{ repo_issuetitle }} - #{{ repo_issueid }}</h3>
  100. <table class="laboratory_list laboratory_issues">
  101. <tr>
  102. <td>State</td>
  103. <td>{{ repo_issuestate }}</td>
  104. </tr>
  105. <tr>
  106. <td>Idle</td>
  107. <td>{{ repo_issueidle }}</td>
  108. </tr>
  109. <tr>
  110. <td>Author</td>
  111. <td>{{ repo_issueauthor }}</td>
  112. </tr>
  113. <tr>
  114. <td>Participants</td>
  115. <td>{{ repo_issueparticipants }}</td>
  116. </tr>
  117. <tr>
  118. <td></td>
  119. <td style="white-space: normal;">
  120. {{ repo_issue }}
  121. </td>
  122. </tr>
  123. </table>
  124. {% else %}
  125. <p style="background-color: orangered; padding: 10px">an error occured: no issues</p>
  126. {% endif %}
  127. {% elif refs %}
  128. <table class="laboratory_list">
  129. {% if repo_branches_list %}
  130. <tr>
  131. <th>Branch</th>
  132. <th>Commit message</th>
  133. <th>Author</th>
  134. <th>Age</th>
  135. </tr>
  136. {{ repo_branches_list }}
  137. {% endif %}
  138. </table>
  139. {% elif log %}
  140. <table class="laboratory_list">
  141. {% if repo_commits_list %}
  142. <tr>
  143. <th>Short commit ID</th>
  144. <th>Commit message</th>
  145. <th>Author</th>
  146. <th>Age</th>
  147. </tr>
  148. {{ repo_commits_list }}
  149. {% else %}
  150. <tr>
  151. <td>Author</td>
  152. <td>{{ repo_commit_author }}</td>
  153. </tr>
  154. <tr>
  155. <td>Committer</td>
  156. <td>{{ repo_commit_committer }}</td>
  157. </tr>
  158. <tr>
  159. <td>Commit</td>
  160. <td><a href="{{ repo_url }}/-/tree/{{ repo_commit_id }}">{{ repo_commit_id }}</a></td>
  161. </tr>
  162. <tr>
  163. <td>Parent</td>
  164. <td><a href="{{ repo_url }}/-/commit/{{ repo_commit_parent }}">{{ repo_commit_parent }}</a></td>
  165. </tr>
  166. <tr>
  167. <td>Message</td>
  168. <td>{{ repo_commit_message }}</td>
  169. </tr>
  170. </table>
  171. <pre style="font-size: 12pt">
  172. {{ repo_commit_diff }}
  173. </pre>
  174. {% endif %}
  175. </table>
  176. {% endif %}