Fix template crash on pull requests in the repo dashboard
This commit is contained in:
parent
452d29345a
commit
6f0801e5c8
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
<a href="/{{$repo.Slug}}/commit/{{.Hash}}">{{.HashShort}}</a>
|
<a href="/{{$repo.Slug}}/commit/{{.Hash}}">{{.HashShort}}</a>
|
||||||
<small class="timeago" title="{{.CreatedString}}"></small>
|
<small class="timeago" title="{{.CreatedString}}"></small>
|
||||||
{{ if .PullRequest }}
|
{{ 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 }}
|
{{ else }}
|
||||||
<p>{{.Message}} </p>
|
<p>{{.Message}} </p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue