Files @ bbbb013a0e94
Branch filter:

Location: kallithea/rhodecode/templates/admin/settings/settings_system_update.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/
## -*- coding: utf-8 -*-
## upgrade block rendered afte on-click check

<div class="alert ${'alert-warning' if c.should_upgrade else 'alert-success'}">
<p style="padding: 2px 0px 5px 0px; margin: 0px">

%if c.should_upgrade:
    A <b>new version</b> is available:
    %if c.latest_data.get('title'):
        <b>${h.literal(c.latest_data['title'])}</b>
    %else:
        <b>${c.latest_ver}</b>
    %endif
%else:
    You already have the <b>latest</b> stable version.
%endif
</p>

% if c.should_upgrade and c.important_notices:
<div style="color: #5f5f5f; padding: 3px 0px 5px 0px;">Important notes for this release:</div>
    <ul>
    % for notice in c.important_notices:
        <li>- ${notice}</li>
    % endfor
    </ul>
% endif
</div>