{% extends 'allura:templates/repo/repo_master.html' %}
{% do g.register_forge_css('css/forge/hilite.css') %}

{% block title %}
  {{c.project.name}} / {{c.app.config.options.mount_label}}
    / {{commit.shorthand_id()}} {{path}}
{% endblock %}

{% block header %}
Tree <a href="{{commit.url()}}">{{commit.shorthand_id()}}</a> {{commit_labels(commit)}} /
{{lib.path_links(path.split('/')[1:])}}
{% endblock %}

{% block actions %}
<a href="{{commit.url()}}log/">
  <b data-icon="{{g.icons.history.char}}" class="ico {{g.icons.history.css}}" title="History"> </b> History
</a>
<a href="{{c.app.url}}feed/">
  <b data-icon="{{g.icons.feed.char}}" class="ico {{g.icons.feed.css}}" title="Feed"> </b>
</a>
{% endblock %}

{% block content %}
  {{ clone_info(c.app.repo) }}
  <br style="clear:both"/>
{{c.tree_widget.display(repo=repo, commit=commit, tree=tree, path=path)}}
{% set name, text = tree.readme() %}
{% if name %}
  <h1 id="readme">Read Me</h1>
  {{text|safe}}
{% endif %}
{% endblock %}
