packages/oae-authentication/emailTemplates/reset.html.jst
<%
/**
* Render the email header
*/
var renderHeader = function() {
var institutionalLogoURL = shared.ensureAbsoluteLink(util.ui.getHashedPath(skinVariables['institutional-logo-url'].replace(/\'/g, '')), baseUrl);
var greeting = util.i18n.translate('__MSG__ACTIVITY_EMAIL_GREETING__', {'displayName': util.html.encodeForHTML(user.displayName)});
greeting = shared.ensureAbsoluteLinks(greeting, baseUrl);
var str = '';
str += '<tr id="header" class="row">';
str += ' <td align="center">';
str += ' <table cellpadding="0" cellspacing="0">';
str += ' <tr id="logo">';
str += ' <td><img src="' + institutionalLogoURL + '" /></td>';
str += ' </tr>';
str += ' <tr id="greeting">';
str += ' <td><h1>' + greeting + '</h1></td>';
str += ' </tr>';
str += ' </table>';
str += ' </td>';
str += '</tr>';
print(str);
};
%>
<%
/**
* Render the email footer
*/
var renderFooter = function() {
var copyrightSymbolI18n = util.i18n.translate('__MSG__COPYRIGHT_SYMBOL__');
var apereoFoundationI18n = util.i18n.translate('__MSG__APEREO_FOUNDATION__');
var str = '';
str += '<tr id="footer" class="row">';
str += '<td align="center">';
str += '</td>';
str += '</tr>';
print(str);
};
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http: //www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http: //www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<style>
/*************
* CORE CSS **
*************/
body {
background-color: <%= skinVariables['body-background-color'] %>;
color: <%= skinVariables['text-color'] %>;
font-size: 13px;
height: 100%;
padding: 20px;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 150%;
}
body, h1, h2, h3, h4, h5, h6, a, span, td, div {
font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
body > table {
margin: 0 auto;
}
a {
color: <%= skinVariables['link-color'] %>;
text-decoration: none;
}
a:hover {
color: <%= skinVariables['link-hover-color'] %>;
}
h1, h2, h3, h4, h5, h6 {
color: <%= skinVariables['text-color']%>;
line-height: 1.1;
}
h1, h2 {
font-weight: 200;
}
h3 {
font-weight: 500;
}
img {
border: 0;
}
.muted {
color: <%= skinVariables['secondary-text-color'] %>;
font-size: 12px;
}
.wrapped {
word-wrap: break-word;
}
.row > td {
max-width: 700px;
min-width:400px;
}
/************
** HEADER **
************/
#header table {
width: 100%;
}
#header td {
text-align: center;
max-width: 650px;
}
#header #logo img {
margin: 0 0 30px;
/* GMail always converts `height` to `min-height` on at least images, so use
`min-height` with `max-height` for some client consistency */
max-height: 50px;
min-height: 50px;
}
#header #greeting h1 {
font-size: 24px;
font-weight: bold;
margin: 0 0 5px;
word-wrap: break-word;
}
#header #summary td {
font-size: 15px;
padding-bottom: 10px;
}
/*************
** CONTENT **
*************/
.content td {
background-color: #FFF;
padding: 20px;
}
/************
** FOOTER **
************/
#footer {
font-size: 10px;
margin: 40px auto 0;
}
</style>
</head>
<body>
<table cellspacing="10" cellpadding="0">
<tbody>
<% renderHeader(); %>
<tr class="row content">
<td>
Please reset your password by visiting the following URL:<br />
<%
var url = baseUrl +'/resetpassword/' +username+'/' + secret;
%>
<a href="<%= url %>"><%= url %></a>
</td>
</tr>
<% renderFooter(); %>
</tbody>
</table>
</body>
</html>