##// END OF EJS Templates
follow Python conventions for boolean values...
follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.

File last commit:

r3582:1f334a68 beta
r3625:260a7a01 beta
Show More
login.html
77 lines | 2.5 KiB | text/html | HtmlLexer
renamed project to rhodecode
r547 ## -*- coding: utf-8 -*-
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <%inherit file="base/root.html"/>
<%def name="title()">
improved title consistency...
r3582 ${_('Log In')} &middot; ${c.rhodecode_name}
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </%def>
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div id="login">
<div class="flash_msg">
<% messages = h.flash.pop_messages() %>
% if messages:
<ul id="flash-messages">
% for message in messages:
<li class="${message.category}_msg">${message}</li>
% endfor
</ul>
% endif
White-space cleanup
r1888 </div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <!-- login -->
<div class="title top-left-rounded-corner top-right-rounded-corner">
improved title consistency...
r3582 <h5>${_('Log In to %s') % c.rhodecode_name}</h5>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </div>
White-space cleanup
r1888 <div class="inner">
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ${h.form(h.url.current(came_from=c.came_from))}
<div class="form">
<!-- fields -->
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div class="fields">
<div class="field">
<div class="label">
<label for="username">${_('Username')}:</label>
</div>
<div class="input">
fixed login input sizes
r3422 ${h.text('username',class_='focus large')}
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </div>
White-space cleanup
r1888
</div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div class="field">
<div class="label">
<label for="password">${_('Password')}:</label>
</div>
<div class="input">
fixed login input sizes
r3422 ${h.password('password',class_='focus large')}
renamed project to rhodecode
r547 </div>
White-space cleanup
r1888
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </div>
Matt Zuba
Remember Me option on login
r1802 <div class="field">
<div class="checkbox">
<input type="checkbox" id="remember" name="remember" />
Matt Zuba
Wrap remember me in translation function
r1804 <label for="remember">${_('Remember me')}</label>
Matt Zuba
Remember Me option on login
r1802 </div>
</div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div class="buttons">
removed deprecated ui-button
r2607 ${h.submit('sign_in',_('Sign In'),class_="ui-btn large")}
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </div>
</div>
<!-- end fields -->
<!-- links -->
<div class="links">
${h.link_to(_('Forgot your password ?'),h.url('reset_password'))}
%if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
White-space cleanup
r1888 /
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ${h.link_to(_("Don't have an account ?"),h.url('register'))}
%endif
</div>
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <!-- end links -->
renamed project to rhodecode
r547 </div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ${h.end_form()}
added focus to login register password reminder forms
r1202 <script type="text/javascript">
YUE.onDOMReady(function(){
Mads Kiilerich
html: don't use tabs
r3197 YUD.get('username').focus();
added focus to login register password reminder forms
r1202 })
</script>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </div>
<!-- end login -->
Augusto Herrmann
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
r1472 </div>