|
@@ -12,22 +12,30 @@ |
|
|
</head> |
|
|
</head> |
|
|
|
|
|
|
|
|
<body> |
|
|
<body> |
|
|
{{if .IsMention}}<p>@{{.Doer.Name}} mentioned you:</p>{{end}} |
|
|
|
|
|
|
|
|
{{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}} |
|
|
<p> |
|
|
<p> |
|
|
|
|
|
{{if eq .ActionName "close"}} |
|
|
|
|
|
Closed #{{.Issue.Index}}. |
|
|
|
|
|
{{else if eq .ActionName "reopen"}} |
|
|
|
|
|
Reopened #{{.Issue.Index}}. |
|
|
|
|
|
{{else if eq .ActionName "approve"}} |
|
|
|
|
|
<b>@{{.Doer.Name}}</b> approved this pull request. |
|
|
|
|
|
{{else if eq .ActionName "reject"}} |
|
|
|
|
|
<b>@{{.Doer.Name}}</b> requested changes on this pull request. |
|
|
|
|
|
{{else if eq .ActionName "review"}} |
|
|
|
|
|
<b>@{{.Doer.Name}}</b> commented on this pull request. |
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
|
{{- if eq .Body ""}} |
|
|
{{- if eq .Body ""}} |
|
|
{{if eq .ActionName "new"}} |
|
|
{{if eq .ActionName "new"}} |
|
|
Created #{{.Issue.Index}}. |
|
|
Created #{{.Issue.Index}}. |
|
|
{{else if eq .ActionName "close"}} |
|
|
|
|
|
Closed #{{.Issue.Index}}. |
|
|
|
|
|
{{else if eq .ActionName "reopen"}} |
|
|
|
|
|
Reopened #{{.Issue.Index}}. |
|
|
|
|
|
{{else if ne .ReviewComments}} |
|
|
|
|
|
Empty comment on #{{.Issue.Index}}. |
|
|
|
|
|
{{end}} |
|
|
{{end}} |
|
|
{{else}} |
|
|
{{else}} |
|
|
{{.Body | Str2html}} |
|
|
{{.Body | Str2html}} |
|
|
{{end -}} |
|
|
{{end -}} |
|
|
{{- range .ReviewComments}} |
|
|
{{- range .ReviewComments}} |
|
|
|
|
|
<hr> |
|
|
|
|
|
In {{.TreePath}}: |
|
|
<div class="review"> |
|
|
<div class="review"> |
|
|
<pre>{{.Patch}}</pre> |
|
|
<pre>{{.Patch}}</pre> |
|
|
<div>{{.RenderedContent | Safe}}</div> |
|
|
<div>{{.RenderedContent | Safe}}</div> |
|
|