Files @ 531ab818cc3d
Branch filter:

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

Bradley M. Kuhn
Add javascript for Object Code excanvas (flot) version herein included and use that instead of minified version.

I had a bit of trouble finding the upstream on excanvas, as the version from
Google, which appears to be the original source, seems unmaintained.

However, it appears the version we're carrying in Kallithea is indeed from
the excanvas era of flot.

$ (cd /tmp; \
svn -r 135 checkout http://flot.googlecode.com/svn/trunk/ flot )
$ cp /tmp/flot/excanvas.js rhodecode/public/js/excanvas.js

I also verified the sha256sum of the min file matched ours:

$ sha256sum /tmp/flot/excanvas.min.js rhodecode/public/js/excanvas.min.js
5f94b032a110504b7b261eaf71392fa3e8d82cdc6455c0cba5c9f03cd34ed122 /tmp/flot/excanvas.min.js
5f94b032a110504b7b261eaf71392fa3e8d82cdc6455c0cba5c9f03cd34ed122 rhodecode/public/js/excanvas.min.js
## -*- 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>