mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-10 11:25:56 -05:00
f9ac5b327a
One part of https://codeberg.org/forgejo/forgejo/pulls/3316, though it may have a little more files touched because I re-created the changes. > Removed HTML `<title>` part in `<head>` that was present inconsistently in these emails. It doesn't appear to be used by other websites. After all, these are emails, not webpages. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3810 Reviewed-by: Otto <otto@codeberg.org>
28 lines
670 B
Go HTML Template
28 lines
670 B
Go HTML Template
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.footer { font-size:small; color:#666;}
|
|
</style>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
</head>
|
|
|
|
{{$repo_url := HTMLFormat "<a href='%s'>%s</a>" .Issue.Repo.HTMLURL .Issue.Repo.FullName}}
|
|
{{$link := HTMLFormat "<a href='%s'>#%d</a>" .Link .Issue.Index}}
|
|
<body>
|
|
<p>
|
|
{{if .IsPull}}
|
|
{{.locale.Tr "mail.issue_assigned.pull" .Doer.Name $link $repo_url}}
|
|
{{else}}
|
|
{{.locale.Tr "mail.issue_assigned.issue" .Doer.Name $link $repo_url}}
|
|
{{end}}
|
|
</p>
|
|
<div class="footer">
|
|
<p>
|
|
---
|
|
<br>
|
|
<a href="{{.Link}}">{{.locale.Tr "mail.view_it_on" AppName}}</a>.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|