Files @ bbbb013a0e94
Branch filter:

Location: kallithea/rhodecode/templates/admin/repos/repo_edit_statistics.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('edit_repo_statistics', repo_name=c.repo_info.repo_name), method='put')}
<div class="form">
    <div class="fields">
       <div class="field" style="border:none;color:#888">
        <ul>
            <li>${_('Processed commits')}: ${c.stats_revision}/${c.repo_last_rev}</li>
            <li>${_('Processed progress')}: ${c.stats_percentage}%</li>
        </ul>
       </div>
        ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset statistics'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
   </div>
</div>
${h.end_form()}