Parent: [f47cd6] (diff)

Child: [196ea3] (diff)

Download this file

tree.html    33 lines (28 with data), 994 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% 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 %}