OXYGENHUB
# abb98fa9964e oxygenhub / templates / tree.html
1.1 KiB · HTML · last changed Milestone 0.1: browse 1 month ago source blame history raw
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>
12
</div>
13
{% include "tree_rows.html" %}
14
{% if let Some(html) = readme_html %}<article class="doc readme">{{ html|safe }}</article>{% endif %}
15
{% endblock %}