Viewing:
{% extends "base.html" %}
{% block title %}{{repo_name}}{% endblock %}
{% block meta_description %}Git repository for {{repo_name}}{% endblock %}
{% block head %}
{% endblock %}
{% block content %}
<div class="RepoIndex">
<div class="RepoIndex__bar">
<div class="RepoIndex__bar-name">
<a href="/~{{repo_owner}}">../</a>{{repo_name}}
</div>
<div class="RepoIndex__bar-description" title="{{description}}">{{description}}</div>
<div class="RepoIndex__bar-links">
<a href="#FilebrowserNav">Files</a>
{% match readme %}
{% when Some with (val) %}
<a href="#ReadmeNav">Readme</a>
{% when None %}
{% endmatch %}
{% if clone_with != "" %}
<a href="#CloneNav">Clone</a>
{% endif -%}
</div>
</div>
<div class="RepoIndex__body">
{% if clone_with != "" %}
<div id="CloneNav"></div>
<div class="CloneInstructions">
<div>Clone with</div>
<pre><code>{{clone_with}}</code></pre>
</div>
{% endif -%}
{% match readme %}
{% when Some with (readme_md) %}
<div id="ReadmeNav"></div>
<div class="Readme">
{{readme_md|safe}}
</div>
{% when None %}
{% endmatch %}
<div id="FilebrowserNav"></div>
<div class="RepoTree">
{{repo_tree.render().unwrap()|safe}}
</div>
</div>
</div>
{% endblock %}