Files
GiteaMailTemplates/themes/terminal/mail/repo/release.tmpl
T
KenanZhuandClaude Opus 4.8 86bb2538bb fix(templates): cross-validate against official Gitea mail templates
- Fix INK theme: replace .ActiveCodeLives with correct field, remove from non-auth contexts (8 files)
- Fix hardcoded button text: use locale key mail.view_it_on in ember, heritage, ink, mono, terminal, terra (30+ files)
- Add missing {{if .CanReply}}mail.reply{{end}} block to all 10 themes default.tmpl
- Add missing mail.release.note locale label to all 10 themes release.tmpl
- Add missing mail.team_invite.text_3 to ink and terra team_invite.tmpl
- Add missing blockquote CSS to aurora, ink, mono, neon, terra default.tmpl

Verified: all 110 templates compile successfully with Go build-preview.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 20:18:40 +08:00

97 lines
4.9 KiB
Cheetah

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.Subject}}</title>
<style type="text/css">
body, .ExternalClass, .ReadMsgBody { background-color: #0d1117; }
blockquote { padding-left: 1em; margin: 1em 0; border-left: 2px solid #30363d; color: #8b949e; }
ul { margin: 12px 0 16px; padding-left: 18px; }
li { margin-bottom: 6px; font-size: 14px; line-height: 1.5; color: #c9d1d9; }
</style>
</head>
<body style="margin:0; padding:0; background-color:#0d1117; font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;">
<center style="width:100%; table-layout:fixed;">
<div style="max-width:600px; margin:20px auto; background:#161b22; border:2px solid #30363d;">
<div style="padding:24px 28px 16px; border-bottom:2px solid #30363d;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td style="vertical-align:middle;">
<span style="font-size:16px; font-weight:700; color:#00ff41; letter-spacing:0.5px;">&gt; {{AppName}}</span>
</td>
</tr>
</table>
</div>
<div style="padding:28px 28px 20px; color:#c9d1d9;">
{{$release_url := HTMLFormat "<a href='%s' style='color:#58a6ff; text-decoration:none; font-weight:700;'>%s</a>" .Release.HTMLURL .Release.TagName}}
{{$repo_url := HTMLFormat "<a href='%s' style='color:#58a6ff; text-decoration:none; font-weight:700;'>%s</a>" .Release.Repo.HTMLURL .Release.Repo.FullName}}
<p style="margin:0 0 16px; font-size:14px; line-height:1.6; color:#c9d1d9;">
{{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url}}
</p>
<h4 style="margin:20px 0 8px; font-size:16px; font-weight:700; color:#00ff41;">{{.locale.Tr "mail.release.title" .Release.Title}}</h4>
<p style="margin:0 0 8px;font-weight:700;color:#00ff41;">$ {{.locale.Tr "mail.release.note"}}</p>
{{if .Release.RenderedNote}}
<div style="margin:12px 0 16px; font-size:14px; line-height:1.6; color:#c9d1d9;">
{{.Release.RenderedNote}}
</div>
{{end}}
<p style="margin:20px 0 8px; font-weight:700; color:#58a6ff;">{{.locale.Tr "mail.release.downloads"}}</p>
<ul style="margin:0 0 20px; padding-left:18px;">
{{if not .DisableDownloadSourceArchives}}
<li>
<a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.zip" rel="nofollow" style="color:#58a6ff; text-decoration:none; font-weight:700;">{{.locale.Tr "mail.release.download.zip"}}</a>
</li>
<li>
<a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow" style="color:#58a6ff; text-decoration:none; font-weight:700;">{{.locale.Tr "mail.release.download.targz"}}</a>
</li>
{{end}}
{{if .Release.Attachments}}
{{range .Release.Attachments}}
<li>
<a href="{{.DownloadURL}}" target="_blank" style="color:#58a6ff; text-decoration:none; font-weight:700;">{{.Name}} ({{.Size | FileSize}})</a>
</li>
{{end}}
{{end}}
</ul>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:16px 0 20px; border-collapse:separate;">
<tr>
<td align="left">
<a href="{{.Link}}" style="display:inline-block; padding:11px 24px; font-size:14px; font-weight:700; color:#0d1117; text-decoration:none; background-color:#00ff41; border:2px solid #00ff41; font-family:'JetBrains Mono','Fira Code','Consolas',monospace; letter-spacing:0.5px;">{{.locale.Tr "mail.view_it_on" AppName}}</a>
</td>
</tr>
</table>
<div style="background:#0d1117; border:1px solid #30363d; padding:14px 16px; margin:20px 0 12px;">
<p style="margin:0 0 6px; font-size:12px; color:#8b949e;">
{{.locale.Tr "mail.link_not_working_do_paste"}}
</p>
<p style="margin:0; font-size:12px; color:#58a6ff; word-break:break-all; line-height:1.6;">
┌─<br>
│ {{.Link}}<br>
└─
</p>
</div>
</div>
<div style="padding:16px 28px 20px; border-top:1px solid #30363d; background:#0d1117;">
<p style="margin:0; font-size:12px; color:#484f58;">
<span style="color:#8b949e;">#</span> &copy; <a href="{{AppUrl}}" style="color:#58a6ff; text-decoration:none;">{{AppName}}</a>
</p>
<p style="margin:4px 0 0; font-size:11px; color:#484f58;">
<span style="color:#8b949e;">#</span> if (!$expecting) { ignore(); }
</p>
</div>
</div>
</center>
</body>
</html>