# HG changeset patch # User Dan # Date 1244828962 14400 # Node ID e5f1f45ea7e20a3c7fd46d6d192b141516be0d1e # Parent 487a16c7117cc552465e991d5b854b693e7c5a6f Added ability to configure from iPhone; changed up iPhone interface a bit diff -r 487a16c7117c -r e5f1f45ea7e2 themes/iphone/config.tpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/iphone/config.tpl Fri Jun 12 13:49:22 2009 -0400 @@ -0,0 +1,216 @@ +{** + * Template file for default Funky Monkey theme + * Web control interface script for Amarok + * Written by Dan Fuhry - 2008 + * + * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + *} + + + + + Greyhound: Configuration + + + + + + + + + + + + « Return to playlist +
+ +
+ +
+ + + + + + {if $tried} + + + + {/if} + + {if $message} + + + + {/if} + + + {if $needpass} + + + + + + + {/if} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Greyhound configuration
+ {if $success} +

{$success|nl2br}

+ {else} +

{$error|nl2br}

+ {/if} +
+

{$message|nl2br}

+
+ Config password: +
+ +
+ +
+ +
+ +
+ +
+ Diagnostics +
+ Clear artwork cache +
+ Refresh playlist +
+ Authentication +
+ + Login required for access +
+ User list:
+ Warning: passwords aren't encrypted
+
+ {strip} + {foreach key=username item=password from=$users} + + {/foreach} + {/strip} + +
+ Change config password:
+ +
+ + +
+
+ +
+ + « Return to playlist + +
+ {include file="footer.tpl"} +
+ + + diff -r 487a16c7117c -r e5f1f45ea7e2 themes/iphone/footer.tpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/iphone/footer.tpl Fri Jun 12 13:49:22 2009 -0400 @@ -0,0 +1,7 @@ + Powered by Greyhound v{$greyhound_version} + – + config + {if $use_auth} + – + log out + {/if} diff -r 487a16c7117c -r e5f1f45ea7e2 themes/iphone/images/playsmall.png Binary file themes/iphone/images/playsmall.png has changed diff -r 487a16c7117c -r e5f1f45ea7e2 themes/iphone/login.tpl --- a/themes/iphone/login.tpl Fri Jun 12 13:48:22 2009 -0400 +++ b/themes/iphone/login.tpl Fri Jun 12 13:49:22 2009 -0400 @@ -57,11 +57,13 @@ {/if} + {if !($tried and $success)} + {/if} diff -r 487a16c7117c -r e5f1f45ea7e2 themes/iphone/playlist.tpl --- a/themes/iphone/playlist.tpl Fri Jun 12 13:48:22 2009 -0400 +++ b/themes/iphone/playlist.tpl Fri Jun 12 13:49:22 2009 -0400 @@ -25,6 +25,8 @@ var img_ajax = '/themes/{$theme|escape}/images/ajax.gif'; var class_current = 'current'; var allow_control = {if $allow_control}true{else}false{/if}; + + var iPhone = true; {foreach from=$scripts item=script} @@ -35,6 +37,7 @@
+
{if $allow_control}  @@ -48,7 +51,9 @@
 
 
{if $allow_control} - Volume: + + Volume: +    - {$track.title|escape} + {$track.title|escape}
+ {$track.album|escape} - {$track.artist|escape}
{sprite artist=$track.artist album=$track.album size=50}
+
+ + Play track + +
- Artist: {$track.artist|escape}
- Album: {$track.album|escape}
Length: {$track.length|escape}
- » Play track
@@ -97,11 +105,7 @@