Parent: [24f508] (diff)

Child: [1b4ce9] (diff)

Download this file

tree.html    36 lines (31 with data), 1.2 kB

 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
33
34
35
{% 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/?path={{ path }}">
<b data-icon="{{g.icons.history.char}}" class="ico {{g.icons.history.css}}" title="History"> </b> History
</a>
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=tool_subscribed, tool_subscribed=tool_subscribed, action='subscribe', style='icon')}}
{% endif %}
<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>
{{h.render_any_markup(name, text)}}
{% endif %}
{% endblock %}