Replace getter calls with direct property access in twig template based on feedback by GromNaN

This commit is contained in:
Daniel G. Taylor
2012-07-17 09:48:14 -07:00
parent 10929babc3
commit be256feac0

View File

@@ -30,7 +30,7 @@
<div class="meta"><a name="{{ loop.index }}">{{ diff.file }}</div> <div class="meta"><a name="{{ loop.index }}">{{ diff.file }}</div>
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a href="{{ path('commits', {repo: repo, branch: commit.getHash, file: diff.getFile}) }}" class="btn btn-small"><i class="icon-list-alt"></i> History</a> <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> <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>
</div> </div>