@(branch: String, commit: util.JGitUtil.CommitInfo, repository: service.RepositoryService.RepositoryInfo, diffs: Seq[util.JGitUtil.DiffInfo])(implicit context: app.Context)
@import context._
@import view.helpers
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
@html.main(commit.shortMessage){
  @html.header("code", repository)
  @navtab(branch, repository, "commits")
  <table class="table table-bordered">
    <tr>
      <th>
        <div class="commit-log">@commit.shortMessage</div>
        @if(commit.description.isDefined){
          <pre class="commit-description">@commit.description.get</pre>
        }
        <div class="small" style="font-weight: normal;"><span class="description">@branch</span></div>
      </th>
    </tr>
    <tr>
      <td>
        <a href="@path/@commit.committer" class="username">@commit.committer</a> <span class="description">@helpers.datetime(commit.time)</span>
        <div class="pull-right align-right monospace small">
          <span class="description">commit</span> @commit.id
        </div>
      </td>
    </tr>
  </table>
  @html.diff(diffs, repository, Some(commit.id))
}

@(branch: String, commit: util.JGitUtil.CommitInfo, repository: service.RepositoryService.RepositoryInfo, diffs: Seq[util.JGitUtil.DiffInfo])(implicit context: app.Context)
@import context._
@import view.helpers
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
@html.main(commit.shortMessage){
  @html.header("code", repository)
  @navtab(branch, repository, "commits")
  <table class="table table-bordered">
    <tr>
      <th>
        <div class="pull-right align-right">
          <a href="@path/@repository.owner/@repository.name/tree/@commit.id" class="btn btn-small">Browse code</a>
        </div>
        <div class="commit-log">@commit.shortMessage</div>
        @if(commit.description.isDefined){
          <pre class="commit-description">@commit.description.get</pre>
        }
        <div class="small" style="font-weight: normal;"><span class="description">@branch</span></div>
      </th>
    </tr>
    <tr>
      <td>
        <a href="@path/@commit.committer" class="username">@commit.committer</a> <span class="description">@helpers.datetime(commit.time)</span>
        <div class="pull-right align-right monospace small">
          <span class="description">commit</span> @commit.id
        </div>
      </td>
    </tr>
  </table>
  @html.diff(diffs, repository, Some(commit.id))
}

Add 'Browse code' button to the commit details page.
Add 'Browse code' button to the commit details page.