## upgrade block rendered afte on-click check

<div class="alert ${'alert-warning' if c.should_upgrade else 'alert-success'}">

%if c.should_upgrade:
    <span style="font-size: 130%">A <b>new version</b> is available !</span>
    <br/>
    <br/>

    %if c.latest_data.get('title'):
        RhodeCode <b>${c.latest_ver}</b> - ${h.literal(c.latest_data['title'])}
    %else:
        RhodeCode <b>${c.latest_ver}</b>
    %endif
%else:
    Your current version, ${c.cur_ver}, is up-to-date as it is equal to or newer than the latest available version, ${c.latest_ver}.
%endif


% if c.should_upgrade and c.important_notices:
<br/>
<br/>
<div>Summary:</div>
<br/>
    % for notice in c.important_notices:
    - ${notice}<br/>
    % endfor
% endif

</div>
