mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-03 22:30:47 +00:00
Fix template crash on pull requests in the repo dashboard
This commit is contained in:
@@ -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 }}
|
||||||
@@ -78,4 +78,4 @@
|
|||||||
$(".btn-refresh").show().removeClass("hide");
|
$(".btn-refresh").show().removeClass("hide");
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user