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.

56 lines
1.5 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>{{.Subject}}</title>
  6. <style>
  7. blockquote { padding-left: 1em; margin: 1em 0; border-left: 1px solid grey; color: #777}
  8. .footer { font-size:small; color:#666;}
  9. </style>
  10. </head>
  11. <body>
  12. <p><b>@{{.Release.Publisher.Name}}</b> released <a href="{{.Release.HTMLURL}}">{{.Release.TagName}}</a>
  13. in <a href="{{AppUrl}}{{.Release.Repo.OwnerName}}/{{.Release.Repo.Name}}">{{.Release.Repo.FullName}} </p>
  14. <h4>Title: {{.Release.Title}}</h4>
  15. <p>
  16. Note: <br>
  17. {{- if eq .Release.RenderedNote ""}}
  18. {{else}}
  19. {{.Release.RenderedNote | Str2html}}
  20. {{end -}}
  21. </p>
  22. <br><br>
  23. <p>
  24. ---
  25. <br>
  26. Downloads:
  27. <ul>
  28. <li>
  29. <a href="{{AppUrl}}{{.Release.Repo.OwnerName}}/{{.Release.Repo.Name}}/archive/{{.Release.TagName | EscapePound}}.zip" rel="nofollow"><strong> Source Code (ZIP)</strong></a>
  30. </li>
  31. <li>
  32. <a href="{{AppUrl}}{{.Release.Repo.OwnerName}}/{{.Release.Repo.Name}}/archive/{{.Release.TagName | EscapePound}}.tar.gz"><strong> Source Code (TAR.GZ)</strong></a>
  33. </li>
  34. {{if .Release.Attachments}}
  35. {{range .Release.Attachments}}
  36. <li>
  37. <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}">
  38. <strong>{{.Name}} ({{.Size | FileSize}})</strong>
  39. </a>
  40. </li>
  41. {{end}}
  42. {{end}}
  43. </ul>
  44. </p>
  45. <div class="footer">
  46. <p>
  47. ---
  48. <br>
  49. <a href="{{.Release.HTMLURL}}">View it on {{AppName}}</a>.
  50. </p>
  51. </div>
  52. </body>
  53. </html>