2010-11-22 14:50:41 +00:00
|
|
|
{% load vcs %}
|
2010-11-22 14:58:10 +00:00
|
|
|
<h2><a href="{% url codereview.browser.views.log repository=repository.name %}?c={{ ref }}">{{ repository.name }}</a></h2>
|
2010-11-22 14:50:41 +00:00
|
|
|
{% if path|dirname %}
|
|
|
|
<strong>{{ path|dirname }}/</strong><br />
|
2010-11-22 14:58:10 +00:00
|
|
|
<a href="{% url codereview.browser.views.log repository=repository.name path=path|dirname %}?c={{ ref }}">Up one</a>
|
2010-11-22 14:50:41 +00:00
|
|
|
{% endif %}
|
2010-11-22 06:14:06 +00:00
|
|
|
<ul class="tree">
|
|
|
|
{% for dir in navigation.dirs %}
|
2010-11-22 14:50:41 +00:00
|
|
|
<li class="dir">
|
2010-11-22 14:58:10 +00:00
|
|
|
<a href="{% url codereview.browser.views.log repository=repository.name path=dir %}/?c={{ ref }}">{{ dir|basename }}</a>
|
2010-11-22 14:50:41 +00:00
|
|
|
</li>
|
2010-11-22 06:14:06 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% for file in navigation.files %}
|
2010-11-22 14:50:41 +00:00
|
|
|
<li class="file">
|
|
|
|
{% if file == path %}
|
|
|
|
<strong>{{ file|basename }}</strong>
|
|
|
|
{% else %}
|
2010-11-22 14:58:10 +00:00
|
|
|
<a href="{% url codereview.browser.views.log repository=repository.name path=file %}?c={{ ref }}">{{ file|basename }}</a>
|
2010-11-22 14:50:41 +00:00
|
|
|
{% endif %}
|
|
|
|
</li>
|
2010-11-22 06:14:06 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|