Sam Jeston
History
21 lines·
919 Bytes
·HTML
| 1 | {# Expects `repos` (Vec<Repo>). #} |
| 2 | <ul class="repo-list"> |
| 3 | {% for repo in repos %} |
| 4 | <li class="repo-item"> |
| 5 | <div class="repo-item-main"> |
| 6 | <h3> |
| 7 | <a href="/{{ repo.owner }}/{{ repo.name }}"><span class="text-muted">{{ repo.owner }} /</span> {{ repo.name }}</a> |
| 8 | <span class="label">{% if repo.is_private %}Private{% else %}Public{% endif %}</span> |
| 9 | </h3> |
| 10 | {% if !repo.description.is_empty() %}<p class="repo-item-desc">{{ repo.description }}</p>{% endif %} |
| 11 | <div class="repo-item-meta"> |
| 12 | {% if let Some(pushed) = repo.pushed_at %} |
| 13 | Updated <time title="{{ crate::web::fmt::datetime_full(pushed) }}">{{ crate::web::fmt::ago(pushed) }}</time> |
| 14 | {% else %} |
| 15 | Created <time title="{{ crate::web::fmt::datetime_full(repo.created_at) }}">{{ crate::web::fmt::ago(repo.created_at) }}</time> |
| 16 | {% endif %} |
| 17 | </div> |
| 18 | </div> |
| 19 | </li> |
| 20 | {% endfor %} |
| 21 | </ul> |