Merge pull request #99 from danielgtaylor/diff-file-history

Add history link to each file in diff view to make it easier to get to
This commit is contained in:
Klaus Silveira
2012-07-20 21:18:31 -07:00

View File

@@ -30,6 +30,7 @@
<div class="meta"><a name="{{ loop.index }}">{{ diff.file }}</div>
<div class="btn-group pull-right">
<a href="{{ path('commits', {repo: repo, branch: commit.hash, file: diff.file}) }}" class="btn btn-small"><i class="icon-list-alt"></i> History</a>
<a href="{{ path('blob', {repo: repo, branch: commit.hash, file: diff.file}) }}" class="btn btn-small"><i class="icon-file"></i> View file @ {{ commit.shortHash }}</a>
</div>
</div>