| 1 | {% extends "base.html" %} |
| 2 | |
| 3 | {% block title %}{{ username }} - {{ site_name }}{% endblock %} |
| 4 | |
| 5 | {% block body %} |
| 6 | <h1>{{ username }}</h1> |
| 7 | <p style="color:#555;font-size:0.75rem;margin-bottom:2rem;">joined {{ joined }}</p> |
| 8 | |
| 9 | <div class="section"> |
| 10 | <h2>repositories</h2> |
| 11 | {% if repos.is_empty() %} |
| 12 | <p class="empty">no repositories yet</p> |
| 13 | {% else %} |
| 14 | <ul class="repo-list"> |
| 15 | {% for r in repos %} |
| 16 | <li> |
| 17 | <a href="/{{ username }}/{{ r.name }}">{{ r.name }}</a> |
| 18 | {% if let Some(h) = r.hash %} |
| 19 | <span class="repo-hash">{{ h }}</span> |
| 20 | {% endif %} |
| 21 | </li> |
| 22 | {% endfor %} |
| 23 | </ul> |
| 24 | {% endif %} |
| 25 | </div> |
| 26 | {% endblock %} |