codereview/templates/browser/blob.html

31 lines
748 B
HTML
Raw Normal View History

2010-11-22 20:12:09 +00:00
{% extends "layouts/default.html" %}
{% load vcs %}
{% block navigation %}
{% include "browser/navigation.html" %}
{% endblock %}
{% block content %}
2010-11-22 20:44:13 +00:00
<h2>File Contents</h2>
{% with log|first as commit %}
<h3>
{{ blob.path|basename }}
@
2010-11-22 21:10:07 +00:00
<a href="{% url codereview.browser.views.commit repository=repository ref=commit.id %}">{{ commit.id }}</a>
2010-11-22 20:44:13 +00:00
</h3>
{% endwith %}
{% if blob.data %}
<table class="diff">
{% for line in blob.data|lines %}
<tr>
<td class="number">{{ forloop.counter }}</td>
<td class="text">{{ line }}</td>
</tr>
{% endfor %}
</table>
{% else %}
<em>File is empty</em>
{% endif %}
2010-11-22 20:12:09 +00:00
{% include "browser/commitlog.html" %}
{% endblock %}