You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.tmpl 976B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>{{.Subject}}</title>
  6. {{if .ReviewComments}}
  7. <style>
  8. .review { padding-left: 1em; margin: 1em 0; }
  9. .review > pre { padding: 1em; border-left: 1px solid grey; }
  10. </style>
  11. {{end}}
  12. </head>
  13. <body>
  14. {{if .IsMention}}<p>@{{.Doer.Name}} mentioned you:</p>{{end}}
  15. <p>
  16. {{- if eq .Body ""}}
  17. {{if eq .ActionName "new"}}
  18. Created #{{.Issue.Index}}.
  19. {{else if eq .ActionName "close"}}
  20. Closed #{{.Issue.Index}}.
  21. {{else if eq .ActionName "reopen"}}
  22. Reopened #{{.Issue.Index}}.
  23. {{else if ne .ReviewComments}}
  24. Empty comment on #{{.Issue.Index}}.
  25. {{end}}
  26. {{else}}
  27. {{.Body | Str2html}}
  28. {{end -}}
  29. {{- range .ReviewComments}}
  30. <div class="review">
  31. <pre>{{.Patch}}</pre>
  32. <div>{{.RenderedContent | Safe}}</div>
  33. </div>
  34. {{end -}}
  35. </p>
  36. <p>
  37. ---
  38. <br>
  39. <a href="{{.Link}}">View it on {{AppName}}</a>.
  40. </p>
  41. </body>
  42. </html>