GITv
master
locator.html2 lines, 806 bytes
1
2
<div class="locator"><details class="refmenu"><summary>{{ branch_icon|safe }}{{ current }}{{ chevron_icon|safe }}</summary><div class="menu"><h2>Branches</h2>{% for item in branches %}<a href="{{ item.href }}"{% if item.current %} aria-current="true"{% endif %}>{{ item.name }}</a>{% endfor %}{% if !tags.is_empty() %}<h2>Tags</h2>{% for item in tags %}<a href="{{ item.href }}"{% if item.current %} aria-current="true"{% endif %}>{{ item.name }}</a>{% endfor %}{% endif %}</div></details>
{% if let Some(root) = root %}<nav class="crumbs" aria-label="Path"><a href="{{ root }}">{{ repo_name }}</a>{% for crumb in crumbs %}<span class="sep">/</span>{% if let Some(href) = crumb.href %}<a href="{{ href }}">{{ crumb.name }}</a>{% else %}<b>{{ crumb.name }}</b>{% endif %}{% endfor %}</nav>{% endif %}</div>