Files @ bbbb013a0e94
Branch filter:

Location: kallithea/rhodecode/templates/admin/repos/repo_edit_remote.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/
%if c.repo_info.clone_uri:
<div style="font-size: 20px; padding: 0px 0px 10px 0px">
   ${_('Remote url')}: <a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri_hidden}</a></li>
</div>
${h.form(url('edit_repo_remote', repo_name=c.repo_name), method='put')}
<div class="form">
   <div class="fields">
       ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
   </div>
</div>
${h.end_form()}
%else:
  <div style="font-size: 20px">
    ${_('This repository does not have any remote url set')}
  </div>
%endif