Files @ bbbb013a0e94
Branch filter:

Location: kallithea/rhodecode/templates/admin/settings/settings_mapping.html - annotation

Bradley M. Kuhn
Import some of the files from Select2 3.5.0 Javascript system.

RhodeCode 2.2.5 used a version of Select2. Herein, we bring into
Kallithea only a few files directly from Select2 3.5.0 (6ef7155) upstream,
using the commands indicated below:

(cd /tmp; \
git clone https://github.com/ivaynberg/select2.git; \
cd select2; \
git checkout 3.5.0 \
)
mkdir rhodecode/public/js/select2
cp -pa /tmp/select2/select2.{js,css,png} rhodecode/public/js/select2/
cp -pa /tmp/select2/select2x2.png rhodecode/public/js/select2/
cp -pa /tmp/select2/select2-spinner.gif rhodecode/public/js/select2/
hg add rhodecode/public/js/select2/
${h.form(url('admin_settings_mapping'), method='post')}
    <div class="form">
        <div class="fields">
            <div class="field">
                <div class="label label-checkbox">
                    <label for="destroy">${_('Rescan option')}:</label>
                </div>
                <div class="checkboxes">
                    <div class="checkbox">
                        ${h.checkbox('destroy',True)}
                        <label for="destroy">${_('Destroy old data')}</label>
                    </div>
                    <span class="help-block">${_('In case a repository was deleted from filesystem and it still exists in the database check this option to scan obsolete data in database and remove it.')}</span>

                    <div class="checkbox">
                        ${h.checkbox('invalidate',True)}
                        <label for="invalidate"> ${_('Invalidate cache for all repositories')}</label>
                    </div>
                    <span class="help-block">${_('Each cache data for repositories will be cleaned with this option selected. Use this to reload data and clear cache keys.')}</span>

                    <div class="checkbox">
                        ${h.checkbox('hooks',True)}
                        <label for="hooks"> ${_('Install GIT hooks')} </label>
                    </div>
                    <span class="help-block">${_('Verify if RhodeCodes GIT hooks are installed for each repository. Current hooks will be updated to latest version')}</span>
                </div>

                </div>
            </div>

            <div class="buttons">
            ${h.submit('rescan',_('Rescan Repositories'),class_="btn")}
            </div>
        </div>
    </div>
${h.end_form()}