Fix broken commits link in the repository header

This commit is contained in:
Naoki Takezoe
2016-03-22 08:14:31 +09:00
parent e7a47fe3a4
commit 0d2c923664

View File

@@ -22,7 +22,7 @@
@helper.html.information(info)
@helper.html.error(error)
<div class="pull-right">
<a href="@url(repository)/commits/@encodeRefName(id.getOrElse(""))" class="header-link">
<a href="@url(repository)/commits/@encodeRefName(id.getOrElse(repository.repository.defaultBranch))" class="header-link">
<i class="octicon octicon-history"></i>
@if(repository.commitCount > 10000){
<strong>10000+</strong> commits