##// END OF EJS Templates
Added managment pages....
Added managment pages. + fixed routing bug done a lot in templates

File last commit:

r44:d924b931 default
r44:d924b931 default
Show More
admin.html
52 lines | 1.2 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="base/base.html"/>
<%def name="title()">
${_('Repository managment')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Home',h.url('/'))}
/
${h.link_to(u'Admin',h.url('admin_home'))}
</%def>
<%def name="page_nav()">
<li>${h.link_to(u'Home',h.url('/'))}</li>
<li class="current">${_('Admin')}</li>
</%def>
<%def name="main()">
%if c.admin_user:
<ul class="submenu">
<li>
${h.link_to(u'Repos managment',h.url('admin_repos_manage'))}
</li>
<li>
${h.link_to(u'Users managment',h.url('admin_users_manage'))}
</li>
</ul>
<br/>
<div>
<h2>Hi !</h2>
</div>
%else:
<div>
<br />
<h2>${_('Login')}</h2>
${h.form(h.url.current())}
<table>
<tr>
<td>${_('Username')}</td>
<td>${h.text('username')}</td>
</tr>
<tr>
<td>${_('Password')}</td>
<td>${h.text('password')}</td>
</tr>
<tr>
<td></td>
<td>${h.submit('login','login')}</td>
</tr>
</table>
${h.end_form()}
</div>
%endif
</%def>