Update information

This commit is contained in:
Brinken
2012-09-02 13:46:16 +02:00
parent b998a6cd8c
commit 77d0ff7a9f

View File

@@ -62,11 +62,17 @@
<script type="text/javascript">
$(document).ready(function(){
% if not headphones.CURRENT_VERSION:
$("#commits-behind").fadeIn('slow').text("${headphones.COMMITS_BEHIND}");
var noty_id = noty({
text:'<span class="wsr">V</span> New version available!',
layout: 'bottomRight',
type:'information'
});
% elif headphones.CURRENT_VERSION != headphones.LATEST_VERSION and headphones.INSTALL_TYPE != 'win':
$("#commits-behind").fadeIn('slow').text("(${headphones.COMMITS_BEHIND})");
% else:
$("#commits-behind").hide()
var noty_id = noty({
text:'<span class="wsr">V</span> You are ${headphones.COMMITS_BEHIND} commits behind',
layout: 'bottomRight',
type:'information'
});
% endif
});
</script>