Merge pull request #101 from danielgtaylor/line-numbers

Show line numbers for diffs in the commit view
This commit is contained in:
Klaus Silveira
2012-07-20 21:19:37 -07:00
6 changed files with 118 additions and 10 deletions

View File

@@ -36,9 +36,17 @@
</div>
<div class="source-diff">
{% for line in diff.lines %}
<pre{% if line.type %} class="{{ line.type }}"{% endif %}>{{ line.line }}</pre>
<table>
{% for line in diff.getLines %}
<tr>
<td class="lineNo">{{ line.getNumOld }}</td>
<td class="lineNo">{{ line.getNumNew }}</td>
<td style="width: 100%">
<pre{% if line.getType %} class="{{ line.getType }}"{% endif %}>{{ line.getLine }}</pre>
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endfor %}