logout.naml
<macro name="logout_page" requires="servlet">
<n.dont_cache/>
<n.do_logout/>
<n.html>
<head>
<n.title.><t>You logged out</t></n.title.>
<script type="text/javascript">
Nabble.setVar('userId', null);
Nabble.setVar('username', null);
Nabble.setVar('password', null);
var loginNextUrl = '/';
</script>
</head>
<body>
<h1><t>You logged out</t></h1>
<p><t>If you logged out by mistake, please <n.login_link.>log in again</n.login_link.>.</t></p>
<script type="text/javascript">
if (Nabble.isEmbedded) {
var $l = $('#login-link');
$l.attr('href', $l.attr('href') + '&nextUrl=/');
}
</script>
<br/>
<br/>
</body>
</n.html>
</macro>
<macro name="logout_path">
<n.encode_url.>
/template/NamlServlet.jtp?macro=logout_page
</n.encode_url.>
</macro>