|
|
@ -239,6 +239,7 @@ var CouchPotato = new Class({ |
|
|
|
}, |
|
|
|
createLayout: function() { |
|
|
|
var self = this; |
|
|
|
self.hide_update = !!App.options && App.options.webui_feature && App.options.webui_feature.hide_menuitem_update; |
|
|
|
self.block.header = new BlockBase(); |
|
|
|
self.c.adopt($(self.block.header).addClass("header").adopt(self.block.navigation = new BlockHeader(self, {}), self.block.search = new BlockSearch(self, {}), self.support = new Element("a.donate.icon-donate", { |
|
|
|
href: "https://couchpota.to/support/", |
|
|
@ -252,11 +253,6 @@ var CouchPotato = new Class({ |
|
|
|
text: "About CouchPotato", |
|
|
|
href: App.createUrl("settings/about") |
|
|
|
}), new Element("a", { |
|
|
|
text: "Check for Updates", |
|
|
|
events: { |
|
|
|
click: self.checkForUpdate.bind(self, null) |
|
|
|
} |
|
|
|
}), new Element("a", { |
|
|
|
text: "Settings", |
|
|
|
href: App.createUrl("settings/general") |
|
|
|
}), new Element("a", { |
|
|
@ -273,6 +269,14 @@ var CouchPotato = new Class({ |
|
|
|
click: self.shutdownQA.bind(self) |
|
|
|
} |
|
|
|
}) ]; |
|
|
|
if (!self.hide_update) { |
|
|
|
setting_links.splice(1, 0, new Element("a", { |
|
|
|
text: "Check for Updates", |
|
|
|
events: { |
|
|
|
click: self.checkForUpdate.bind(self, null) |
|
|
|
} |
|
|
|
})); |
|
|
|
} |
|
|
|
setting_links.each(function(a) { |
|
|
|
self.block.more.addLink(a); |
|
|
|
}); |
|
|
@ -2018,7 +2022,7 @@ var AboutSettingTab = new Class({ |
|
|
|
self.createAbout(); |
|
|
|
}); |
|
|
|
self.settings.default_action = "about"; |
|
|
|
self.hide_dirs = !!App.options && App.options.hide_about_dirs; |
|
|
|
self.hide_dirs = !!App.options && App.options.webui_feature && App.options.webui_feature.hide_about_dirs; |
|
|
|
}, |
|
|
|
createAbout: function() { |
|
|
|
var self = this; |
|
|
|