Added http_root option to the config

This commit is contained in:
Remy
2011-07-11 02:18:01 -07:00
parent 633b2de875
commit ceadca253f

View File

@@ -1,3 +1,5 @@
from headphones import web_root
_header = '''
<html>
<head>
@@ -10,7 +12,7 @@ _header = '''
<div class="container">'''
_logobar = '''
<div class="logo"><a href="/"><img src="data/images/headphoneslogo.png" border="0">headphones<a></div>
<div class="logo"><a href=""><img src="data/images/headphoneslogo.png" border="0">headphones<a></div>
<div class="search"><form action="findArtist" method="GET">
<input type="text" value="Add an artist" onfocus="if
(this.value==this.defaultValue) this.value='';" name="name" />
@@ -18,14 +20,14 @@ _logobar = '''
'''
_nav = '''<div class="nav">
<a href="/">HOME</a>
<a href="/upcoming">UPCOMING</a>
<a href="/manage">MANAGE</a>
<a href="/history">HISTORY</a>
<a href="/config">SETTINGS</a>
<a href="">HOME</a>
<a href="upcoming">UPCOMING</a>
<a href="manage">MANAGE</a>
<a href="history">HISTORY</a>
<a href="config">SETTINGS</a>
<div style="float:right">
<a href="/restart" title="Restart"><img src="data/images/restart.png" height="15px" width="15px"></a>
<a href="/shutdown" title="Shutdown"><img src="data/images/shutdown.png" height="15px" width="15px"></a>
<a href="restart" title="Restart"><img src="data/images/restart.png" height="15px" width="15px"></a>
<a href="shutdown" title="Shutdown"><img src="data/images/shutdown.png" height="15px" width="15px"></a>
</div>
</div>'''