some more commits, extras.html, config.html (bad layout), otherstuff, changed log levels

This commit is contained in:
Remy
2011-08-07 02:51:12 -07:00
parent d59f714a97
commit 1c736bf228
9 changed files with 101 additions and 80 deletions

View File

@@ -1,46 +1,42 @@
<%inherit file="base.html"/>
<form action="configUpdate" method="post">
<div class="table_wrapper">
<table class="configtable" summary="Web Interface">
<tr>
<td>
<p> HTTP Host: <br />
<input type="text" name="http_host" value="${config['http_host']}" size="30" maxlength="40"><br />
<i class="smalltext">e.g. localhost or 0.0.0.0</i>
</p>
</td>
<td>
<p>HTTP Username: <br />
<input type="text" name="http_username" value="${config['http_user']}" size="30" maxlength="40">
</p>
</td>
</tr>
<tr>
<td>
<p>HTTP Port: <br />
<input type="text" name="http_port" value="${config['http_port']}" size="20" maxlength="40">
</p>
</td>
<td>
<p>HTTP Password: <br />
<input type="password" name="http_password" value="${config['http_pass']}" size="30" maxlength="40">
</p>
</td>
</tr>
<tr>
<td>
<p>Launch Browser on Startup:<input type="checkbox" name="launch_browser" value="1" ${config['launch_browser']} /></p>
</td>
</tr>
</table>
<h1>Web Interface</h1>
<table>
<tr>
<td>
<p> HTTP Host: <br />
<input type="text" name="http_host" value="${config['http_host']}" size="30" maxlength="40"><br />
<i class="smalltext">e.g. localhost or 0.0.0.0</i>
</p>
</td>
<td>
<p>HTTP Username: <br />
<input type="text" name="http_username" value="${config['http_user']}" size="30" maxlength="40">
</p>
</td>
</tr>
<tr>
<td>
<p>HTTP Port: <br />
<input type="text" name="http_port" value="${config['http_port']}" size="20" maxlength="40">
</p>
</td>
<td>
<p>HTTP Password: <br />
<input type="password" name="http_password" value="${config['http_pass']}" size="30" maxlength="40">
</p>
</td>
</tr>
<tr>
<td>
<p>Launch Browser on Startup:<input type="checkbox" name="launch_browser" value="1" ${config['launch_browser']} /></p>
</td>
</tr>
</table>
</div>
<div class="table_wrapper">
<a name="download">
<h1>
<u>Download Settings</u>
</h1>
</a>
<h1>Download Settings</h1>
<table class="configtable" summary="Download Settings">
<tr>
<td>

View File

@@ -19,7 +19,9 @@
%>
%if out_tuple:
<%
if out_tuple[1] == 'WARNING' or out_tuple[1] == 'ERROR':
if out_tuple[1] == 'DEBUG':
continue
elif out_tuple[1] == 'WARNING' or out_tuple[1] == 'ERROR':
grade = 'X'
else:
grade = 'Z'

View File

@@ -1,9 +0,0 @@
<%inherit file="base.html"/>
<%def name="headIncludes()">
<meta http-equiv="refresh" content="30;url=index">
</%def>
<%def name="body()">
Headphones is restarting
</%def>

View File

@@ -5,5 +5,7 @@
</%def>
<%def name="body()">
Headphones is shutting down
<div class="table_wrapper">
Headphones is ${message}
</div>
</%def>

View File

@@ -2,9 +2,28 @@
<%def name="body()">
<div class="table_wrapper">
<h1>Upcoming Albums</h1>
%for album in wanted:
%endfor
<table class="display" id="upcoming_table">
<thead>
<tr>
<th id="albumart"></th>
<th id="albumname">Album Name</th>
<th id="reldate">Release Date</th>
<th id="type">Release Type</th>
<th id="status">Status</th>
</tr>
</thead>
<tbody>
%for album in upcoming:
<tr class="gradeZ">
<td id="albumart"><img src="http://ec1.images-amazon.com/images/P/${album['AlbumASIN']}.01.MZZZZZZZ.jpg" height="50" width="50"></td>
<td id="albumname"><a href="albumPage?AlbumID=${album['AlbumID']}">${album['AlbumTitle']}</a></td>
<td id="reldate">${album['ReleaseDate']}</td>
<td id="type"></td>
<td id="status"></td>
</tr>
%endfor
</tbody>
</table>
</div>
<div class="table_wrapper">
@@ -12,3 +31,22 @@
</div>
</%def>
<%def name="headIncludes()">
<link rel="stylesheet" href="css/data_table.css">
</%def>
<%def name="javascriptIncludes()">
<script src="js/libs/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function()
{
$('#track_table').dataTable(
{
"bFilter": false,
"bInfo": false,
"bPaginate": false
});
});
</script>
</%def>

View File

@@ -1,9 +0,0 @@
<%inherit file="base.html"/>
<%def name="headIncludes()">
<meta http-equiv="refresh" content="120;url=index">
</%def>
<%def name="body()">
Headphones is updating
</%def>