| 1 |
{% if t.entries.is_empty() %} |
| 2 |
<p class="empty">This repository is empty. From an existing checkout: <code>oxy remote add hub {{ repo.clone_url }}</code> then <code>oxy push hub</code>. It takes the id of the first repository pushed, so clones made later share it.</p> |
| 3 |
{% else %} |
| 4 |
<table class="tree" data-last="{{ repo.url }}/last/{{ t.target.label }}" data-change="{{ repo.url }}/change/"> |
| 5 |
{% if !t.path.is_empty() %} |
| 6 |
<tr><td class="g">↰</td><td colspan="3"><a href="{{ repo.url }}/tree/{{ t.target.label }}{% if let Some((_, p)) = t.crumbs.iter().rev().nth(1) %}/{{ p }}{% endif %}">..</a></td></tr> |
| 7 |
{% endif %} |
| 8 |
{% for e in t.entries %} |
| 9 |
<tr data-path="{{ e.path }}"> |
| 10 |
<td class="g">{{ e.kind.glyph() }}</td> |
| 11 |
<td class="name"> |
| 12 |
{% if e.kind == crate::repos::view::EntryKind::Dir %}<a href="{{ repo.url }}/tree/{{ t.target.label }}/{{ e.path }}">{{ e.name }}</a> |
| 13 |
{% else %}<a href="{{ repo.url }}/file/{{ t.target.label }}/{{ e.path }}">{{ e.name }}</a>{% endif %} |
| 14 |
{% if e.exec %}<span class="tag">exec</span>{% endif %} |
| 15 |
{% if e.conflicted %}<span class="tag bad">conflict</span>{% endif %} |
| 16 |
</td> |
| 17 |
<td class="last"><a href="{{ repo.url }}/changes/{{ t.target.label }}?path={{ e.path }}" class="mute">…</a></td> |
| 18 |
<td class="age mute"></td> |
| 19 |
</tr> |
| 20 |
{% endfor %} |
| 21 |
</table> |
| 22 |
{% endif %} |