From 5b7880936f4162bfff6f5d1b987aed97bc5b74f6 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Sun, 26 Apr 2015 00:46:16 +0100 Subject: [PATCH] Removed unused title templating --- mopidy_musicbox_webclient/static/index.html | 1 - mopidy_musicbox_webclient/web.py | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/mopidy_musicbox_webclient/static/index.html b/mopidy_musicbox_webclient/static/index.html index c02bcd0..ae66ed2 100644 --- a/mopidy_musicbox_webclient/static/index.html +++ b/mopidy_musicbox_webclient/static/index.html @@ -10,7 +10,6 @@ //configuration var isMusicBox = {{musicbox}}; // Remove MusicBox only content (e.g. settings, system pages) var websocketUrl = '{{websocket_url}}' - //{{title}} $(document).bind("mobileinit", function () { $.extend($.mobile, { diff --git a/mopidy_musicbox_webclient/web.py b/mopidy_musicbox_webclient/web.py index 5ac4540..64c0870 100644 --- a/mopidy_musicbox_webclient/web.py +++ b/mopidy_musicbox_webclient/web.py @@ -48,16 +48,9 @@ class IndexHandler(tornado.web.RequestHandler): 'websocket_url': ws_url } self.__path = path - self.__title = string.Template('MusicBox on $hostname') def get(self, path): - return self.render('index.html', title=self.get_title(), **self.__dict) - - def get_title(self): - hostname, sep, port = self.request.host.rpartition(':') - if not sep or not port.isdigit(): - hostname, port = self.request.host, '80' - return self.__title.safe_substitute(hostname=hostname, port=port) + return self.render('index.html', **self.__dict) def get_template_path(self): return self.__path