61 lines
4.3 KiB
Cheetah
61 lines
4.3 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" />
|
|
<meta name="x-apple-disable-message-reformatting" />
|
|
<title>{{.Subject}}</title>
|
|
<style type="text/css">
|
|
body,.ExternalClass,.ReadMsgBody{background-color:#fafafa}
|
|
@media only screen and (max-width:480px){
|
|
.resp-pad{padding-left:16px!important;padding-right:16px!important}
|
|
.resp-full{width:100%!important;display:block!important}
|
|
.resp-hide{display:none!important}
|
|
.resp-btn{display:block!important;width:auto!important}
|
|
.resp-heading{font-size:22px!important}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="margin:0;padding:0;background:#fafafa;font-family:system-ui,-apple-system,sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;">
|
|
<center style="width:100%;table-layout:fixed;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:600px;background:#fff;border:2px solid #000;">
|
|
<!-- header -->
|
|
<tr><td class="resp-pad" style="padding:24px 32px 0;">
|
|
<span style="font-size:14px;font-weight:900;color:#000;letter-spacing:-0.5px;text-transform:uppercase;">{{AppName}}<span style="color:#e03131;margin-left:4px;">*</span></span>
|
|
</td></tr>
|
|
<!-- split: left 60% content, right 40% whitespace -->
|
|
<tr><td class="resp-pad" style="padding:0 32px 0;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="resp-full" width="60%" style="padding:32px 0 0;">
|
|
<p class="resp-heading" style="margin:0 0 32px;font-size:28px;font-weight:900;color:#000;line-height:1.1;letter-spacing:-1px;"></p>
|
|
<p style="margin:0 0 8px;font-size:13px;line-height:1.8;color:#333;font-weight:500;">{{$release_url := HTMLFormat "<a href=\047%s\047>%s</a>" .Release.HTMLURL .Release.TagName}}{{$repo_url := HTMLFormat "<a href=\047%s\047>%s</a>" .Release.Repo.HTMLURL .Release.Repo.FullName}}{{.locale.Tr "mail.release.new.text" .Release.Publisher.Name $release_url $repo_url}}
|
|
<h4>{{.locale.Tr "mail.release.title" .Release.Title}}</h4>
|
|
{{if .Release.RenderedNote}}<div>{{.Release.RenderedNote}}</div>{{end}}
|
|
<p>{{.locale.Tr "mail.release.downloads"}}</p>
|
|
<ul>{{if not .DisableDownloadSourceArchives}}<li><a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.zip">{{.locale.Tr "mail.release.download.zip"}}</a></li><li><a href="{{.Release.Repo.HTMLURL}}/archive/{{.Release.TagName | PathEscapeSegments}}.tar.gz">{{.locale.Tr "mail.release.download.targz"}}</a></li>{{end}}{{if .Release.Attachments}}{{range .Release.Attachments}}<li><a href="{{.DownloadURL}}">{{.Name}} ({{.Size | FileSize}})</a></li>{{end}}{{end}}</ul></p>
|
|
<p style="margin:0 0 32px;font-size:12px;line-height:1.8;color:#888;border-left:2px solid #e03131;padding-left:12px;"></p>
|
|
</td>
|
|
<td class="resp-hide" width="40%" style="padding:32px 0 0 0;vertical-align:top;"></td>
|
|
</tr>
|
|
</table>
|
|
</td></tr>
|
|
<!-- button -->
|
|
<tr><td class="resp-pad" style="padding:0 32px 24px;">
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0"><tr><td style="border:2px solid #000;padding:14px 32px;">
|
|
<a href="{{.Link}}" class="resp-btn" style="display:inline-block;font-size:14px;font-weight:900;color:#000;text-decoration:none;letter-spacing:-0.3px;">ACTIVATE</a>
|
|
</td></tr></table>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:24px 0 0;"><tr><td style="padding:12px 16px;background:#f5f5f5;border:1px solid #ccc;">
|
|
<p style="margin:0 0 6px;font-size:11px;color:#888;">{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
|
|
<p style="margin:0;font-size:11px;font-family:monospace;color:#000;background:#fff;padding:8px 10px;border:1px solid #000;word-break:break-all;">{{.Link}}</p>
|
|
</td></tr></table>
|
|
</td></tr>
|
|
<!-- footer -->
|
|
<tr><td style="padding:16px 32px;border-top:2px solid #000;">
|
|
<p style="margin:0;font-size:11px;color:#888;"><a href="{{AppUrl}}" style="color:#e03131;text-decoration:underline;font-weight:600;">{{AppName}}</a> — Gitea Mail Templates</p>
|
|
</td></tr>
|
|
</table>
|
|
</center>
|
|
</body>
|
|
</html> |