mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-23 05:09:28 +00:00
adding template files
This commit is contained in:
6
data/interfaces/default/_inc_footer.tmpl
Normal file
6
data/interfaces/default/_inc_footer.tmpl
Normal file
@@ -0,0 +1,6 @@
|
||||
</div>
|
||||
<div class="footer">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
37
data/interfaces/default/_inc_header.tmpl
Normal file
37
data/interfaces/default/_inc_header.tmpl
Normal file
@@ -0,0 +1,37 @@
|
||||
#attr title = ""
|
||||
#attr rootPath = ""
|
||||
#attr scripts = ""
|
||||
#attr styles = ""
|
||||
<html>
|
||||
<head>
|
||||
<title>Headphones $title</title>
|
||||
<link rel="stylesheet" type="text/css" href="$rootPath/data/css/style.css" />
|
||||
<link rel="icon" type="image/x-icon" href="$rootPath/data/images/favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="$rootPath/data/images/headphoneslogo.png" />
|
||||
<script src="$rootPath/data/js/jquery-1.6.2.min.js" type="text/javascript"></script>
|
||||
<script src="$rootPath/data/js/jquery-ui-1.8.14.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$scripts
|
||||
</script>
|
||||
<style>
|
||||
$styles
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="logo"><a href="/">
|
||||
<img src="$rootPath/data/images/headphoneslogo.png" border="0">headphones<a></div>
|
||||
<div class="search">
|
||||
version check
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<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="/shutdown"><font color="red">SHUTDOWN</font></a>
|
||||
</div>
|
||||
<div class="table">
|
||||
45
data/interfaces/default/albumPage.tmpl
Normal file
45
data/interfaces/default/albumPage.tmpl
Normal file
@@ -0,0 +1,45 @@
|
||||
#attr $albumASIN = ""
|
||||
#attr $albumTitle = ""
|
||||
#attr $albumID = ""
|
||||
#attr $artitstID = ""
|
||||
#attr $artistName = ""
|
||||
#import os.path
|
||||
#import time
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
|
||||
<table border="0" cellpadding="3">
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
#if $albumASIN:
|
||||
<img src="http://ec1.images-amazon.com/images/P/${albumASIN}.01.LZZZZZZZ.jpg" height="200" width="200">
|
||||
<br />
|
||||
#end if
|
||||
<br />
|
||||
<a href="artistPage?ArtistID=$artistID">${artistName}</a> -${albumTitle}<br />
|
||||
<a href="queueAlbum?AlbumID=${albumID}&ArtistID=${artistID}">Download <br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align="left" width="100">Track #</th>
|
||||
<th align="left" width="100">Track Title</th>
|
||||
<th align="center" width="300">Duration</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
#for $track in $tracks
|
||||
<tr>
|
||||
<td align="left" width="120">${track[7]}</td>
|
||||
<td align="left" width="240">
|
||||
${track[3]}(<a class="external" href="http://musicbrainz.org/recording/${track[5]}.html">link</a>)
|
||||
</td>
|
||||
<td align="center">
|
||||
#try
|
||||
#echo time.strftime("%M:%S", time.gmtime(int($track[4])/1000))
|
||||
#except
|
||||
n/a
|
||||
#end try
|
||||
</td>
|
||||
</tr>
|
||||
#end for
|
||||
</table>
|
||||
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
13
data/interfaces/default/artistInfo.tmpl
Normal file
13
data/interfaces/default/artistInfo.tmpl
Normal file
@@ -0,0 +1,13 @@
|
||||
#attr $artistName = ""
|
||||
#attr $artistUuid = ""
|
||||
#attr $releaseGroups = []
|
||||
#import os.path
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
Artist Name: $artistName <br />
|
||||
Unique ID: $artistUuid <br />
|
||||
<br />
|
||||
Albums:<br />
|
||||
#for $releaseGroup in $releaseGroups:
|
||||
$releaseGroup <br />
|
||||
#end for
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
39
data/interfaces/default/artistPage.tmpl
Normal file
39
data/interfaces/default/artistPage.tmpl
Normal file
@@ -0,0 +1,39 @@
|
||||
#attr $artistName = ""
|
||||
#attr $artistID = ""
|
||||
#import os.path
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
<table border="0" cellpadding="3">
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<p align="center">$artistName <br /></p>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" width="50"></td>
|
||||
<td align="left" width="120">Album Name</td>
|
||||
<td align="center" width="100">Release Date</td>
|
||||
<td align="center" width="300">Status</td>
|
||||
</tr>
|
||||
#for $album in $albums
|
||||
<tr>
|
||||
<td align="left">
|
||||
<img src="http://ec1.images-amazon.com/images/P/$album[5].01.MZZZZZZZ.jpg" height="50" widtd="50">
|
||||
</td>
|
||||
<td align="left" width="240"><a href="albumPage?AlbumID=$album[2]">$album[0]</a>
|
||||
(<A class="external" href="http://musicbrainz.org/release/${album[2]}.html">link</a>)</td>
|
||||
<td align="center" widtd="160">$album[1]</td>
|
||||
<td align="center">
|
||||
#if $album[3] == 'Skipped':
|
||||
<b>$album[3]</b>[<A class="external" href="queueAlbum?AlbumID=${album[2]}&ArtistID=$artistID">want</a>]
|
||||
#elif $album[3] == 'Wanted':
|
||||
<b>$album[3]</b>[<a class="external" href="unqueueAlbum?AlbumID=$album[2]&ArtistID=$artistID">skip</a>]
|
||||
#elif $album[3] == 'Downloaded' or $album[3] == 'Snatched':
|
||||
<b>$album[3]</b>[<a class="external" href="queueAlbum?AlbumID=$album[2]&ArtistID=$artistID">retry</a>]
|
||||
#else:
|
||||
$album[3]
|
||||
#end if
|
||||
</td>
|
||||
</tr>
|
||||
#end for
|
||||
</table>
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
33
data/interfaces/default/index.tmpl
Normal file
33
data/interfaces/default/index.tmpl
Normal file
@@ -0,0 +1,33 @@
|
||||
#import os.path
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
<table border="0" cellpadding="3">
|
||||
<tr>
|
||||
<th align="left" width="170">Artist Name</th>
|
||||
<th align="center" width="100">Status</th>
|
||||
<th align="center" width="300">Upcoming Albums</th>
|
||||
</tr>
|
||||
#for $artist in $artists
|
||||
<tr>
|
||||
<td align="left" width="300">
|
||||
<a href="artistPage?ArtistID=$artist[1]">$artist[0]</a>
|
||||
(<a class="external" href="http://musicbrainz.org/artist/$artist[1]">link</a>)
|
||||
[<a class="externalred" href="deleteArtist?ArtistID=$artist[1]">delete</a>]
|
||||
</td>
|
||||
<td align="center" width="160">
|
||||
#if $artist[2] == 'Active':
|
||||
$artist[2] (<a class="external" href="pauseArtist?ArtistID=$artist[1]">pause</a>)
|
||||
#else:
|
||||
<font color="red"><b>$artist[2]</b></font>(<A class="external" href="resumeArtist?ArtistID=$artist[1]">resume</a>)
|
||||
#end if
|
||||
</td>
|
||||
<td align="center">
|
||||
#try
|
||||
$artist[3] $artist[4]
|
||||
#except
|
||||
<font color="#CFCFCF">None</font>
|
||||
#end try
|
||||
</td>
|
||||
</tr>
|
||||
#end for
|
||||
</table>
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
28
data/interfaces/default/manage.tmpl
Normal file
28
data/interfaces/default/manage.tmpl
Normal file
@@ -0,0 +1,28 @@
|
||||
#attr $path = ""
|
||||
#import os.path
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
|
||||
<div class="config">
|
||||
<h1>Import or Sync Your iTunes Library/Music Folder</h1>
|
||||
<p> Enter the full path to your iTunes XML file or music folder
|
||||
i.e. /Users/"username"/Music/iTunes/iTunes Music Library.xml
|
||||
<i>or</i> /Users/"username"/Music/iTunes/iTunes Media/Music
|
||||
(artists should have their own directories for folder import to work)
|
||||
<b>note: This process can take a LONG time!</b>
|
||||
Once you click "Submit" you can navigate away from this
|
||||
page while the process runs. </p>
|
||||
<form action="importItunes" method="GET" align="center">
|
||||
<input type="text" value="${path}" onfocus="if
|
||||
(this.value==this.defaultValue) this.value='';" name="path" size="70" />
|
||||
<input type="submit" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="table">
|
||||
<div class="config">
|
||||
<h1>Force Search</h1>
|
||||
<a href="forceSearch">Force Check for Wanted Albums</a><br />
|
||||
<a href="forceUpdate">Force Update Active Artists </a><br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
31
data/interfaces/default/search.tmpl
Normal file
31
data/interfaces/default/search.tmpl
Normal file
@@ -0,0 +1,31 @@
|
||||
#import os.path
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_header.tmpl")
|
||||
<div id="search" style="float:left;">
|
||||
<table border="0" cellpadding="3">
|
||||
<form name="search">
|
||||
<tr>
|
||||
<td><label for="artist">Artist</label></td>
|
||||
<td><input type="textbox" id="artist" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="artist">Release</label></td>
|
||||
<td><input type="textbox" id="artist" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="artist">Label</label></td>
|
||||
<td><input type="textbox" id="artist" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td align="right"><input type="submit" value="search" onclick="$.getJSON"/></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</div>
|
||||
<div id="results" style="float:left;">
|
||||
<b>Results:</b>
|
||||
<ul id="resultsList">
|
||||
<ul>
|
||||
</div>
|
||||
<p style="clear:both;"></p>
|
||||
#include os.path.abspath($appPath+"/data/interfaces/default/_inc_footer.tmpl")
|
||||
Reference in New Issue
Block a user