##// END OF EJS Templates
Added tag v5.0.2 for changeset 75a4ae344440
Added tag v5.0.2 for changeset 75a4ae344440

File last commit:

r5358:2095c653 default
r5418:b4e2b39b stable
Show More
login.mako
105 lines | 4.3 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="base/root.mako"/>
<%def name="title()">
${_('Sign In')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
login: optimized UI for login/register/password reset windows.
r4546 <style>body{background-color:#eeeeee;}</style>
templating: use .mako as extensions for template files.
r1282
<div class="loginbox">
login/register: fixed header width problem.
r4544 <div class="header-account">
templating: use .mako as extensions for template files.
r1282 <div id="header-inner" class="title">
<div id="logo">
<div class="logo-wrapper">
ui: reduce logo size
r3541 <a href="${h.route_path('home')}"><img src="${h.asset('images/rhodecode-logo-white-60x60.png')}" alt="RhodeCode"/></a>
templating: use .mako as extensions for template files.
r1282 </div>
dan
ui: fixed branding look&feel as per discussions.
r3543 % if c.rhodecode_name:
<div class="branding">
<a href="${h.route_path('home')}">${h.branding(c.rhodecode_name)}</a>
</div>
% endif
templating: use .mako as extensions for template files.
r1282 </div>
</div>
</div>
<div class="loginwrapper">
rhodecode-toasts: added flash toast into pages that don't inherit from base.
r1485 <rhodecode-toast id="notifications"></rhodecode-toast>
auth: login/registration changes for upcomming new rules for login using external identities....
r3386
login: optimized UI for login/register/password reset windows.
r4546 <div class="auth-image-wrapper">
templating: use .mako as extensions for template files.
r1282 <img class="sign-in-image" src="${h.asset('images/sign-in.png')}" alt="RhodeCode"/>
</div>
auth: login/registration changes for upcomming new rules for login using external identities....
r3386
login: optimized UI for login/register/password reset windows.
r4546 <div id="login">
auth: allow custom name for plugins if defined in the settings.
r4545 <%block name="above_login_button" />
templating: use .mako as extensions for template files.
r1282 <!-- login -->
<div class="sign-in-title">
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 <h1>${_('Sign In using username/password')}</h1>
templating: use .mako as extensions for template files.
r1282 </div>
<div class="inner form">
pylons: remove pylons as dependency...
r2351 ${h.form(request.route_path('login', _query={'came_from': c.came_from}), needs_csrf_token=False)}
templating: use .mako as extensions for template files.
r1282
<label for="username">${_('Username')}:</label>
${h.text('username', class_='focus', value=defaults.get('username'))}
%if 'username' in errors:
<span class="error-message">${errors.get('username')}</span>
<br />
%endif
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 <label for="password">${_('Password')}:
%if h.HasPermissionAny('hg.password_reset.enabled')():
<div class="pull-right">${h.link_to(_('Forgot your password?'), h.route_path('reset_password'), class_='pwd_reset', tabindex="-1")}</div>
%endif
</label>
templating: use .mako as extensions for template files.
r1282 ${h.password('password', class_='focus')}
%if 'password' in errors:
<span class="error-message">${errors.get('password')}</span>
<br />
%endif
${h.checkbox('remember', value=True, checked=defaults.get('remember'))}
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 <% timeout = request.registry.settings.get('beaker.session.timeout', '0') %>
% if timeout == '0':
<% remember_label = _('Remember my indefinitely') %>
% else:
<% remember_label = _('Remember me for {}').format(h.age_from_seconds(timeout)) %>
% endif
<label class="checkbox" for="remember">${remember_label}</label>
templating: use .mako as extensions for template files.
r1282
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 <p class="links">
%if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
dan
ui: fix labels on sign in screen
r3401 ${h.link_to(_("Create a new account."), request.route_path('register'), class_='new_account')}
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 %endif
</p>
%if not h.HasPermissionAny('hg.password_reset.enabled')():
## password reset hidden or disabled.
templating: use .mako as extensions for template files.
r1282 <p class="help-block">
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 ${_('Password reset is disabled.')} <br/>
${_('Please contact ')}
templating: use .mako as extensions for template files.
r1282 % if c.visual.rhodecode_support_url:
<a href="${c.visual.rhodecode_support_url}" target="_blank">${_('Support')}</a>
${_('or')}
% endif
${_('an administrator if you need help.')}
</p>
helper-blocks: fix pre formatting only for auth plugin helper texts....
r1470 %endif
templating: use .mako as extensions for template files.
r1282
auth: login/registration changes for upcomming new rules for login using external identities....
r3386 ${h.submit('sign_in', _('Sign In'), class_="btn sign-in", title=_('Sign in to {}').format(c.rhodecode_edition))}
templating: use .mako as extensions for template files.
r1282 ${h.end_form()}
<script type="text/javascript">
$(document).ready(function(){
$('#username').focus();
})
</script>
auth: login/registration changes for upcomming new rules for login using external identities....
r3386
templating: use .mako as extensions for template files.
r1282 </div>
<!-- end login -->
auth: login/registration changes for upcomming new rules for login using external identities....
r3386
templating: use .mako as extensions for template files.
r1282 <%block name="below_login_button" />
</div>
</div>
</div>