REBUILD in some view

This commit is contained in:
devezhao 2019-11-15 13:47:42 +08:00
parent a82a791f76
commit 6ebd2c3c94
3 changed files with 22 additions and 16 deletions

View file

@ -103,6 +103,7 @@ public class SMSender {
String eHTML = mailbody.html();
// 处理变量
eHTML = eHTML.replace("%TO%", to);
eHTML = eHTML.replace("%APPNAME%", SysConfiguration.get(ConfigurableItem.AppName));
params.put("html", eHTML);
} else {

View file

@ -1,21 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mail Notification Template</title>
<meta charset="utf-8">
<title>Mail Notification Template</title>
</head>
<body>
<div style="background-color:#f5f5f5;margin:0;font-size:0.9rem;padding:20px 30px;color:#333;font-family:Roboto,Helvetica,'Microsoft YaHei','宋体',sans-serif;line-height:1.5">
<div>
<a href="https://getrebuild.com/?utm_source=mailtemp"><img src="https://getrebuild.com/img/logo.png" alt="REBUILD" style="width:132px;display:inline-block"></a>
</div>
<div style="border:1px solid #eee;padding:30px 20px;background-color:#fff;border-radius:3px;border-top:3px solid #4285f4;max-width:720px;margin:10px 0">
<h2 class="rb-title" style="font-size:1.4rem;margin:0;font-weight:400">%TITLE%</h2>
<div class="rb-content" style="margin-top:10px">%CONTETN%</div>
</div>
<div>
<div class="rb-footer" style="margin:0;color:#888;font-size:12px;">本消息由 REBUILD 系统自动发送,请不要直接回复。<br><em>This email was sent to %TO%</em></div>
</div>
</div>
<div style="background-color:#f5f5f5;margin:0;font-size:0.9rem;padding:20px 30px;color:#333;font-family:Roboto,Helvetica,'Microsoft YaHei','宋体',sans-serif;line-height:1.5">
<div>
<a href="https://getrebuild.com/?utm_source=rb.mail">
<img src="https://getrebuild.com/img/logo.png" alt="REBUILD" style="width:132px;display:inline-block"/>
</a>
</div>
<div style="border:1px solid #eee;padding:30px 20px;background-color:#fff;border-radius:3px;border-top:3px solid #4285f4;max-width:720px;margin:10px 0">
<h2 class="rb-title" style="font-size:1.4rem;margin:0;font-weight:400">%TITLE%</h2>
<div class="rb-content" style="margin-top:10px">%CONTETN%</div>
</div>
<div>
<div class="rb-footer" style="margin:0;color:#888;font-size:12px;">
本消息由 %APPNAME% 系统自动发送,请不要直接回复。<br>
<em>This email was sent to %TO%</em>
</div>
</div>
</div>
</body>
</html>
</html>

View file

@ -92,7 +92,7 @@
<% } %>
<div class="block">
<div class="text-muted">
&copy; 2019 <a href="https://getrebuild.com/?utm_source=rebuild">${appName}</a>
&copy; 2019 <a href="https://getrebuild.com/?utm_source=rebuild">REBUILD</a>
<% if (AppUtils.getRequestUser(request) != null) { %>
&nbsp;·&nbsp;
<a href="server-status.json">Status Api</a>