brie-aurore/Brie/brie/templates/index.html

36 lines
1.4 KiB
HTML
Raw Normal View History

<html xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude">
2012-10-12 02:03:12 +00:00
<head>
<link rel="stylesheet" type="text/css" href="/css/common.css" />
2012-10-28 13:06:01 +00:00
<link rel="stylesheet" type="text/css" href="/css/show.css" />
2012-10-12 02:03:12 +00:00
</head>
<body>
2012-10-12 02:03:12 +00:00
<xi:include href="login_widget.html" />
<div>${login_widget(user)}</div>
2012-10-12 02:03:12 +00:00
2012-10-28 13:06:01 +00:00
<div py:if="user is not None">
<div class="section">
<span class="section_name show_section_name"></span>
<a py:if="user.groups.admin" class="button" href="/rooms/" >CHAMBRES</a>
<a py:if="user.groups.responsablereseau" class="button" href="/administration/" >ADMINISTRATION</a>
2012-10-28 13:06:01 +00:00
</div>
<div class="section" >
<span class="section_name show_section_name">DEBUG</span>
<div>
<span class="item_name">user</span>
<span>${user.attrs.uid.first()}</span>
</div>
<div>
<span class="item_name">dn</span>
<span>${user.attrs.dn}</span>
</div>
<div>
<span class="item_name">groups</span>
<span>
<py:for each="group in user.groups.list()">${group} </py:for>
</span>
</div>
</div>
</div>
</body>
</html>