| 1 | {% extends "base.html" %} |
| 2 | |
| 3 | {% block title %}{{ filename }} - {{ owner }}/{{ repo }} - {{ site_name }}{% endblock %} |
| 4 | |
| 5 | {% block body %} |
| 6 | <div class="breadcrumb"> |
| 7 | <a href="/{{ owner }}">{{ owner }}</a> |
| 8 | <span class="sep">/</span> |
| 9 | <a href="/{{ owner }}/{{ repo }}">{{ repo }}</a> |
| 10 | {% for seg in breadcrumbs %} |
| 11 | <span class="sep">/</span> |
| 12 | {% if loop.last %} |
| 13 | <span style="color:#ccc;">{{ seg.name }}</span> |
| 14 | {% else %} |
| 15 | <a href="/{{ owner }}/{{ repo }}/tree/{{ branch }}/{{ seg.path }}">{{ seg.name }}</a> |
| 16 | {% endif %} |
| 17 | {% endfor %} |
| 18 | </div> |
| 19 | |
| 20 | <div class="section"> |
| 21 | {% if is_binary %} |
| 22 | <div class="blob-container"> |
| 23 | <div class="binary-notice">binary file ({{ size }} bytes)</div> |
| 24 | </div> |
| 25 | {% else %} |
| 26 | <div style="color:#555;font-size:0.7rem;margin-bottom:0.5rem;">{{ line_count }} lines · {{ size }} bytes</div> |
| 27 | <div class="blob-container"> |
| 28 | <table class="blob-table"> |
| 29 | {% for line in lines %} |
| 30 | <tr> |
| 31 | <td class="line-num">{{ loop.index }}</td> |
| 32 | <td class="line-content">{{ line }}</td> |
| 33 | </tr> |
| 34 | {% endfor %} |
| 35 | </table> |
| 36 | </div> |
| 37 | {% endif %} |
| 38 | </div> |
| 39 | {% endblock %} |