Mercurial Hosting > nabble
diff src/nabble/view/naml/logout.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/view/naml/logout.naml Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,36 @@ +<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>