| d23464c0 Andy McCall ↶ |
1 |
{% extends "base.html" %} |
| 2 |
{% import "repo_tabs.html" as m %} |
| 3 |
{% block title %}{{ t.path }} at {{ t.target.label|short }} · {{ repo.owner }}/{{ repo.name }}{% endblock %} |
| 4 |
{% block bodyattrs %} data-repo="{{ repo.url }}" data-ref="{{ t.target.label }}"{% endblock %} |
| 5 |
{% block tabs %}{% call m::tabs(repo, "code") %}{% endblock %} |
| 6 |
{% block mainclass %} class="wide"{% endblock %} |
| 7 |
{% block content %} |
| 8 |
<div class="bar"> |
| 9 |
<span class="ref px">{% if t.target.kind == crate::repos::view::RefKind::Change %}# {{ t.target.label|short }}{% else %}◆ {{ t.target.label }}{% endif %}</span> |
| 10 |
<span class="crumbs"><a href="{{ repo.url }}/tree/{{ t.target.label }}">{{ repo.name }}</a>{% for (n, p) in t.crumbs %} / <a href="{{ repo.url }}/tree/{{ t.target.label }}/{{ p }}">{{ n }}</a>{% endfor %}</span> |
| 11 |
<a class="go small" href="{{ repo.url }}/changes/{{ t.target.label }}{% if !t.path.is_empty() %}?path={{ t.path }}{% endif %}">history</a> |
| 14530604 Andy McCall ↶ |
12 |
{% if repo.can(crate::auth::Access::Write) %}<a class="go small" href="{{ repo.url }}/newfile/{{ t.target.label }}?dir={{ t.path }}">new file</a>{% endif %} |
| d23464c0 Andy McCall ↶ |
13 |
</div> |
| 14 |
{% include "tree_rows.html" %} |
| 15 |
{% if let Some(html) = readme_html %}<article class="doc readme">{{ html|safe }}</article>{% endif %} |
| 16 |
{% endblock %} |