Files @ 158ef33603b8
Branch filter:

Location: kallithea/rhodecode/templates/admin/settings/settings_global.html

Bradley M. Kuhn
Add mousetrap.js file from Mousetrap 1.4.5, under the Apache license.

The file was download and verified via these commands:
$ git clone https://github.com/ccampbell/mousetrap.git
$ cd mousetrap; git checkout 1.4.5

The file in that repository named mousetrap.js is exactly the same one that
appeared in RhodeCode 2.2.5 in changeset c8d3c0d61d95.

The mousetrap.js states clearly that it is licensed under Apache-2.0.
${h.form(url('admin_settings_global'), method='post')}
    <div class="form">

        <div class="fields">

             <div class="field">
                <div class="label">
                    <label for="rhodecode_title">${_('Site branding')}:</label>
                </div>
                <div class="input">
                    ${h.text('rhodecode_title',size=30)}
                    <span class="help-block">${_('Set a custom title for your RhodeCode Service.')}</span>
                </div>
             </div>

            <div class="field">
                <div class="label">
                    <label for="rhodecode_realm">${_('HTTP authentication realm')}:</label>
                </div>
                <div class="input">
                    ${h.text('rhodecode_realm',size=30)}
                </div>
            </div>

            <div class="field">
                <div class="label">
                    <label for="rhodecode_ga_code">${_('Google Analytics code')}:</label>
                </div>
                <div class="input">
                    ${h.text('rhodecode_ga_code',size=30)}
                </div>
            </div>

            <div class="field">
                <div class="label">
                    <label for="rhodecode_captcha_public_key">${_('ReCaptcha public key')}:</label>
                </div>
                <div class="input">
                    ${h.text('rhodecode_captcha_public_key',size=60)}
                    <span class="help-block">${_('Public key for reCaptcha system.')}</span>
                </div>
            </div>

            <div class="field">
                <div class="label">
                    <label for="rhodecode_captcha_private_key">${_('ReCaptcha private key')}:</label>
                </div>
                <div class="input">
                    ${h.text('rhodecode_captcha_private_key',size=60)}
                    <span class="help-block">${_('Private key for reCaptcha system. Setting this value will enable captcha on registration')}</span>
                </div>
            </div>

            <div class="buttons">
                ${h.submit('save',_('Save settings'),class_="btn")}
                ${h.reset('reset',_('Reset'),class_="btn")}
           </div>
        </div>
    </div>
${h.end_form()}