47 lines
1.1 KiB
Smarty
47 lines
1.1 KiB
Smarty
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="content-type">
|
|
<style>
|
|
div {
|
|
color: #777;
|
|
margin: auto;
|
|
width: 20em;
|
|
text-align: center;
|
|
}
|
|
div#hbox {width: 100%;}
|
|
div#hbox div.box {float: center; width: 33%;}
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="hbox">
|
|
<div class="box">
|
|
<h2>Simple Auth for Bottle</h2>
|
|
<h3>Demonstration site</h3>
|
|
%if username is None:
|
|
<p>You are not loged in</p>
|
|
%else:
|
|
<p>You are loged as {{username}}</p>
|
|
<p>You have these roles :
|
|
%for r in roles:
|
|
{{r}},
|
|
%end
|
|
</p>
|
|
<p><a href="/logout">Logout</a></p>
|
|
<p><a href="/password">Change password</a></p>
|
|
%end
|
|
<h4>Pages of the test site :</h4>
|
|
<p>
|
|
<ul>
|
|
<li>This home page</a>
|
|
<li><a href="/login">Login page</a>
|
|
<li><a href="/private">A restricted access page</a>
|
|
<li><a href="/admin">The admin page</a>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|