gitea源码

workflow_run.tmpl 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
  6. <title>{{.Subject}}</title>
  7. </head>
  8. <body style="background-color: #f5f7fa; margin: 20px;">
  9. <h2 style="color: #2c3e50; margin-bottom: 20px;">
  10. {{.Repo.FullName}} {{.Run.WorkflowID}}: {{.RunStatusText}}
  11. </h2>
  12. <ul style="list-style: none; padding: 0; margin: 0 0 30px 0;">
  13. {{range $job := .Jobs}}
  14. <li style="background-color: #ffffff; border: 1px solid #ddd; border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: box-shadow 0.2s ease;">
  15. <a href="{{$job.HTMLURL}}" style="color: #0073e6; text-decoration: none; font-weight: bold;">
  16. {{$job.Status}}: {{$job.Name}}{{if gt $job.Attempt 1}}, Attempt #{{$job.Attempt}}{{end}}, {{$job.Duration}}
  17. </a>
  18. </li>
  19. {{end}}
  20. </ul>
  21. <br/>
  22. <div style="text-align: center; margin-top: 30px;">
  23. <a href="{{.Run.HTMLURL}}" style="display: inline-block; background-color: #28a745; color: #ffffff !important; text-decoration: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: background-color 0.3s ease;">
  24. {{.locale.Tr "mail.view_it_on" AppName}}
  25. </a>
  26. </div>
  27. </body>
  28. </html>