1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "base.html" %}
{% block content %}
{{ masthead|safe }}{{ locator|safe }}
<div class="panel">
{% if let Some(h) = head %}
<div class="panel-head"><div class="lead"><b class="who">{{ h.author }}</b><a class="subject" href="{{ h.url }}">{{ h.subject }}</a></div><div class="side">{{ h.sha_link|safe }}<span>{{ h.when }}</span><a href="{{ h.history }}">History</a></div></div>
{% endif %}
<ul class="rows tree-list">
{% if let Some(url) = up %}<li><a class="entry" href="{{ url }}">{{ crate::html::icon("up")|safe }}<span class="name">..</span></a></li>{% endif %}
{% for row in rows %}{{ row|safe }}{% endfor %}
</ul></div>
{% if previous.is_some() || next.is_some() %}
<nav class="pager" aria-label="Directory pages">
{% if let Some(url) = previous %}<a class="button" href="{{ url }}">Previous</a>{% endif %}
{% if let Some(url) = next %}<a class="button" href="{{ url }}">Next</a>{% endif %}
</nav>
{% endif %}
{% if let Some((name, content)) = readme %}<section class="panel"><div class="panel-head"><div class="lead">{{ crate::html::icon("book")|safe }}<b>{{ name }}</b></div></div>{{ content|safe }}</section>{% endif %}
{% endblock %}