| 1 |
{% extends "base.html" %} |
| 2 |
{% block title %}{% if let Some(o) = owner %}{{ o }}{% else %}Repositories{% endif %}{% endblock %} |
| 3 |
{% block content %} |
| 4 |
<div class="head"> |
| 5 |
{% if let Some(o) = owner %}<h1>{{ o }} <small>{{ repos.len()|plural("repository", "repositories") }}</small></h1> |
| 6 |
{% else %}<h1>Repositories <small>{{ description }}</small></h1>{% endif %} |
| 7 |
</div> |
| 8 |
{% if repos.is_empty() %} |
| 9 |
<p class="empty">No repositories yet. Create one with <code>oxygenhub admin repo create OWNER/NAME</code>, then <code>oxy push</code> into it.</p> |
| 10 |
{% else %} |
| 11 |
<ul class="rows repos"> |
| 12 |
{% for r in repos %} |
| 13 |
<li> |
| 14 |
<div> |
| 15 |
<a class="name" href="/{{ r.owner }}/{{ r.name }}"><span class="mute">{{ r.owner }} /</span> <strong>{{ r.name }}</strong></a> |
| 16 |
{% if r.visibility != "public" %}<span class="tag">{{ r.visibility }}</span>{% endif %} |
| 17 |
{% if !r.description.is_empty() %}<p class="small">{{ r.description }}</p>{% endif %} |
| 18 |
</div> |
| 19 |
<div class="right small">updated <time title="{{ r.updated_ms|when_i }}">{{ r.updated_ms|ago_i }}</time></div> |
| 20 |
</li> |
| 21 |
{% endfor %} |
| 22 |
</ul> |
| 23 |
{% endif %} |
| 24 |
{% endblock %} |