Merge pull request #19 from scottferg/master

Fix template crash on pull requests in the repo dashboard
This commit is contained in:
Brad Rydzewski 2014-02-08 17:53:15 -07:00
commit 63f6ba0810

View file

@ -33,7 +33,7 @@
<a href="/{{$repo.Slug}}/commit/{{.Hash}}">{{.HashShort}}</a>
<small class="timeago" title="{{.CreatedString}}"></small>
{{ if .PullRequest }}
<p>opened pull request <a href="/{{.Slug}}/commit/{{.Hash}}"># {{.PullRequest}}</a></p>
<p>opened pull request <a href="/{{$repo.Slug}}/commit/{{.Hash}}"># {{.PullRequest}}</a></p>
{{ else }}
<p>{{.Message}} &nbsp;</p>
{{ end }}
@ -78,4 +78,4 @@
$(".btn-refresh").show().removeClass("hide");
};
</script>
{{ end }}
{{ end }}