codereview/templates/browser/navigation.html

23 lines
918 B
HTML
Raw Normal View History

2010-11-22 14:50:41 +00:00
{% load vcs %}
<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 />
<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">
<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 %}
<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>