Big Update: Automatic updating, Show what albums/songs you already have, Config fixes, Fixed restart & shutdown buttons

This commit is contained in:
Remy
2011-07-13 23:04:30 -07:00
parent c94b066af1
commit 5b155921ba
+4 -2
View File
@@ -26,7 +26,7 @@ class WebInterface(object):
def home(self):
page = [templates._header]
if headphones.LATEST_VERSION:
if headphones.LATEST_VERSION and headphones.CURRENT_VERSION:
if headphones.CURRENT_VERSION != headphones.LATEST_VERSION:
page.append('''<div class="updatebar">A <a class="blue" href="http://github.com/rembo10/headphones/compare/%s...%s">
newer version</a> is available. You're %s commits behind. <a class="blue" href="update">Click here to update</a></div>
@@ -625,4 +625,6 @@ class WebInterface(object):
def update(self):
logger.info('Headphones is updating...')
headphones.shutdown(restart=True, update=True)
return 'Updating Headphones...'
return 'Updating Headphones...'
update.exposed = True