Expose the theme RSS feeds
[rockboxthemes.git] / private / templates / frontpage.tpl
blobd74628173ebcd26fc89781048a131f2b4992199f
1 {* This template is also used for the admin frontpage *}
3 {if !$title}{assign var="title" value="Frontpage"}{/if}
4 {include file="header.tpl" title=$title}
6 {if $admin}
7 <h1>Admin area</h1>
8 <p>Pick a device below to manage themes for that target/screen size</p>
9 {else}
10 <h1>Rockbox themes</h1>
11 <p>Pick a device below to see themes for that target/screen size</p>
12 {/if}
14 <table>
15 {section name=mysec loop=$targets}
16     <td align="center">
17         <a href="{$smarty.server.SCRIPT_NAME}?target={$targets[mysec].shortname}">
18         <img src="http://www.rockbox.org/playerpics/{$targets[mysec].pic}" title="{$targets[mysec].fullname}" />
19         </a><br />
20         <small>LCD: {$targets[mysec].mainlcd}x{$targets[mysec].depth}</small>
21     </td>
22 {/section}
23 </table>
25 {if $admin}
26 <hr />
27 {if $adminmsg}<p>{$adminmsg}</p>{/if}
28 <h2>Add a missing target</h2>
29 <form method="POST" action="{$smarty.server.SCRIPT_NAME}">
30 <input type="hidden" name="addtarget" value="yes" />
31 <table>
32     <tr>
33         <td>Name</td>
34         <td><input type="text" name="fullname" /></td><td>(e.g. Apple Ipod Video)</td>
35     </tr>
36     <tr>
37         <td>Shortname</td>
38         <td><input type="text" name="shortname" /></td><td>(e.g. ipodvideo - must match checkwps usage)</td>
39     </tr>
40     <tr>
41         <td>Main LCD resolution</td>
42         <td><input type="text" name="mainlcd" /></td><td>(e.g. 320x240)</td>
43     </tr>
44     <tr>
45         <td>Main LCD screen depth</td>
46         <td><input type="text" name="depth" /></td><td>(e.g. 16)</td>
47     </tr>
48     <tr>
49         <td>Remote LCD resolution</td>
50         <td><input type="text" name="remotelcd" /></td><td>(e.g. 320x240)</td>
51     </tr>
52     <tr>
53         <td>Picture</td>
54         <td><input type="text" name="pic" /></td><td>(e.g. ipodvideo-small.png)</td>
55     </tr>
56     <tr>
57         <td colspan="2" align="right"><input type="submit" value="Add" /></td>
58         <td></td>
59     </tr>
60 </table>
61 </form>
62 {else}
63 <h2>TODO list</h2>
64 <pre>
65 {include file="TODO"}
66 <pre>
67 {/if}
69 {include file="footer.tpl"}