fix: fix missied things

This commit is contained in:
TheClashFruit 2023-12-03 12:23:42 +01:00
parent cb9e91d2fb
commit dc136f427d
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
2 changed files with 30 additions and 23 deletions

View file

@ -62,7 +62,7 @@
<tbody> <tbody>
<tr> <tr>
<td style="line-height: 24px; font-size: 16px; margin: 0;" align="left"> <td style="line-height: 24px; font-size: 16px; margin: 0;" align="left">
<img class="w-24" src="{{AppUrl}}/assets/img/logo.svg" style="height: auto; line-height: 100%; outline: none; text-decoration: none; display: block; width: 96px; border-style: none; border-width: 0;" width="96"> <img class="w-24" src="{{AppUrl}}assets/img/logo.svg" style="height: auto; line-height: 100%; outline: none; text-decoration: none; display: block; width: 96px; border-style: none; border-width: 0;" width="96">
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -94,6 +94,7 @@
{{else}} {{else}}
updated updated
{{end}} {{end}}
{{.Repo}}#{{.Issue.Index}}
</h1> </h1>
<table class="s-4 w-full" role="presentation" border="0" cellpadding="0" cellspacing="0" style="width: 100%;" width="100%"> <table class="s-4 w-full" role="presentation" border="0" cellpadding="0" cellspacing="0" style="width: 100%;" width="100%">
<tbody> <tbody>
@ -105,28 +106,10 @@
</tbody> </tbody>
</table> </table>
{{if not (eq .Body "")}} {{if not (eq .Body "")}}
<p class="" style="line-height: 24px; font-size: 16px; width: 100%; margin: 0;" align="left"> <p style="line-height: 24px; font-size: 16px; width: 100%; margin: 0;" align="left">
{{.Body | Str2html}} {{.Body | Str2html}}
</p> </p>
<table class="s-4 w-full" role="presentation" border="0" cellpadding="0" cellspacing="0" style="width: 100%;" width="100%">
<tbody>
<tr>
<td style="line-height: 16px; font-size: 16px; width: 100%; height: 16px; margin: 0;" align="left" width="100%" height="16">
&#160;
</td>
</tr>
</tbody>
</table>
{{end}} {{end}}
<table class="btn btn-primary p-3 fw-700" role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-radius: 6px; border-collapse: separate !important; font-weight: 700 !important;">
<tbody>
<tr>
<td style="line-height: 24px; font-size: 16px; border-radius: 6px; font-weight: 700 !important; margin: 0;" align="center" bgcolor="#0d6efd">
<a href="{{.Link}}" style="color: #ffffff; font-size: 16px; font-family: Helvetica, Arial, sans-serif; text-decoration: none; border-radius: 6px; line-height: 20px; display: block; font-weight: 700 !important; white-space: nowrap; background-color: #0d6efd; padding: 12px; border: 1px solid #0d6efd;">Visit Issue</a>
</td>
</tr>
</tbody>
</table>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -141,6 +124,26 @@
</tbody> </tbody>
</table> </table>
<div class=""> <div class="">
<div class="text-center" style="" align="center">
<table class="btn btn-primary p-3 fw-700" role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-radius: 6px; border-collapse: separate !important; font-weight: 700 !important;">
<tbody>
<tr>
<td style="line-height: 24px; font-size: 16px; border-radius: 6px; font-weight: 700 !important; margin: 0;" align="center" bgcolor="#0d6efd">
<a href="{{.Link}}" style="color: #ffffff; font-size: 16px; font-family: Helvetica, Arial, sans-serif; text-decoration: none; border-radius: 6px; line-height: 20px; display: block; font-weight: 700 !important; white-space: nowrap; background-color: #0d6efd; padding: 12px; border: 1px solid #0d6efd;">Visit Issue</a>
</td>
</tr>
</tbody>
</table>
</div>
<table class="s-4 w-full" role="presentation" border="0" cellpadding="0" cellspacing="0" style="width: 100%;" width="100%">
<tbody>
<tr>
<td style="line-height: 16px; font-size: 16px; width: 100%; height: 16px; margin: 0;" align="left" width="100%" height="16">
&#160;
</td>
</tr>
</tbody>
</table>
<p class="text-muted text-center" style="line-height: 24px; font-size: 16px; color: #718096; width: 100%; margin: 0;" align="center">{{AppName}}</p> <p class="text-muted text-center" style="line-height: 24px; font-size: 16px; color: #718096; width: 100%; margin: 0;" align="center">{{AppName}}</p>
<p class="text-green-500 text-center" style="line-height: 24px; font-size: 16px; color: #198754; width: 100%; margin: 0;" align="center"> <p class="text-green-500 text-center" style="line-height: 24px; font-size: 16px; color: #198754; width: 100%; margin: 0;" align="center">
{{if .IsMention}} {{if .IsMention}}

View file

@ -10,7 +10,7 @@
</head> </head>
<body class="bg-light"> <body class="bg-light">
<div class="container"> <div class="container">
<img class="ax-center my-10 w-24" src="{{AppUrl}}/assets/img/logo.svg" /> <img class="ax-center my-10 w-24" src="{{AppUrl}}assets/img/logo.svg" />
<div class="card p-6 p-lg-10 space-y-4"> <div class="card p-6 p-lg-10 space-y-4">
<h1 class="h3 fw-700"> <h1 class="h3 fw-700">
@{{.Doer.Name}} @{{.Doer.Name}}
@ -27,15 +27,19 @@
{{else}} {{else}}
updated updated
{{end}} {{end}}
{{.Repo}}#{{.Issue.Index}}
</h1> </h1>
{{if not (eq .Body "")}} {{if not (eq .Body "")}}
<p> <p>
{{.Body | Str2html}} {{.Body | Str2html}}
</p> </p>
{{end}} {{end}}
<a class="btn btn-primary p-3 fw-700" href="{{.Link}}">Visit Issue</a>
</div> </div>
<div class="my-6"> <div class="my-6">
<div class="text-center mb-4">
<a class="btn btn-primary p-3 fw-700" href="{{.Link}}">Visit Issue</a>
</div>
<p class="text-muted text-center">{{AppName}}</p> <p class="text-muted text-center">{{AppName}}</p>
<p class="text-green-500 text-center"> <p class="text-green-500 text-center">
{{if .IsMention}} {{if .IsMention}}
@ -45,4 +49,4 @@
</div> </div>
</div> </div>
</body> </body>
</html> </html>