Files @ 31f510a88584
Branch filter:

Location: kallithea/rhodecode/templates/password_reset.html

Bradley M. Kuhn
Update minified YUI to version 2.9 built from Source.

yui.2.9.js used to be a minified version of YUI 2.9 until 5143b8df576c updated
it to something else and applied more aggresive minification. We stick to a
clean but minified version 2.9.

The license of YUI is BSD 3-clause, as described on
http://yuilibrary.com/license/ .

Since the minified version combines with GPLv3'd Javascript, it is only GPLv3'd
compliant to distribute this Object Code version with the Corresponding Source
(or offer therefor).

This yui.2.9.js is built from Source this way:
git clone https://github.com/yui/builder
git clone https://github.com/yui/yui2
cd yui2/
git checkout hudson-yui2-2800
ln -sf JumpToPageDropDown.js src/paginator/js/JumpToPageDropdown.js # work around inconsistent casing
rm -f tmp.js
for m in yahoo event dom connection animation dragdrop element datasource autocomplete container event-delegate json datatable paginator; do
rm -f build/$m/$m.js; ( cd src/$m && ant build deploybuild ) && sed -e 's,@VERSION@,2.9.0,g' -e 's,@BUILD@,2800,g' build/$m/$m.js >> tmp.js
done
java -jar ../builder/componentbuild/lib/yuicompressor/yuicompressor-2.4.4.jar tmp.js -o yui.2.9.js

The source is mirrored and available on https://kallithea-scm.org/repos/mirror .
## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>

<%def name="title()">
    ${_('Password Reset')}
    %if c.rhodecode_name:
        &middot; ${c.rhodecode_name}
    %endif
</%def>


<div id="header">
    <div id="header-inner" class="title">
        <div id="logo">
            <div class="header">
                <a href="${h.url('home')}"><img src="/images/rhodecode-logo-white-216x60.png" alt="RhodeCode"/></a>
            </div>
            %if c.rhodecode_name:
             <div class="branding">- ${c.rhodecode_name}</div>
            %endif
        </div>
    </div>
</div>

<div id="register">
    <%include file="/base/flash_msg.html"/>
    <div class="title withlogo">
        %if c.rhodecode_name:
            <h5>${_('Reset your Password to %s') % c.rhodecode_name}</h5>
        %else:
            <h5>${_('Reset your Password')}</h5>
        %endif
    </div>
    <div class="inner">
        ${h.form(url('password_reset'))}
        <div class="form">
            <!-- fields -->
            <div class="fields">

                 <div class="field">
                    <div class="label">
                        <label for="email">${_('Email Address')}:</label>
                    </div>
                    <div class="input">
                        ${h.text('email')}
                    </div>
                 </div>

                %if c.captcha_active:
                <div class="field">
                    <div class="label">
                        <label for="email">${_('Captcha')}:</label>
                    </div>
                    <div class="input">
                        ${h.hidden('recaptcha_field')}
                        <div id="recaptcha"></div>
                    </div>
                </div>
                %endif

                <div class="buttons">
                    <div class="nohighlight">
                      ${h.submit('send',_('Send password reset email'),class_="btn")}
                          <div class="activation_msg">${_('Password reset link will be send to matching email address')}</div>
                    </div>
                </div>
            </div>
        </div>
        ${h.end_form()}
        %if c.captcha_active:
        <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
        %endif
        <script type="text/javascript">
         $(document).ready(function(){
            $('#email').focus();
            %if c.captcha_active:
            Recaptcha.create("${c.captcha_public_key}", "recaptcha",
                {
                  theme: "white",
                }
            );
            %endif
         });
        </script>
    </div>
   </div>