## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="get_form_error(element)"> %if hasattr(c,'form_errors'): %if type(c.form_errors) == dict: %if c.form_errors.get(element,False): ${c.form_errors.get(element,'')} %endif %endif %endif <%def name="title()"> ${_('Repository managment')} <%def name="breadcrumbs()"> ${h.link_to(u'Admin',h.url('admin_home'))} / <%def name="page_nav()"> <%def name="main()"> %if c.admin_user:

Welcome ${c.admin_username}

${c.log_data}
%else:

${_('Login')}

${h.form(h.url.current())}
${_('Username')} ${h.text('username')} ${get_form_error('username')}
${_('Password')} ${h.password('password')} ${get_form_error('password')}
${h.submit('login','login')}
${h.end_form()}
%endif