aboutsummaryrefslogtreecommitdiff
path: root/r7r_repo/templates/src/home.html
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-05 14:43:33 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-05 14:43:33 +0100
commitc4cc87d9d1557ddd4cae4b06b79696712f61a2ad (patch)
tree081b31be890c484040a63f626063e846ef583680 /r7r_repo/templates/src/home.html
parente99281261767710f96b9967a0ab03a3ea24a05e0 (diff)
downloadr7r-repo-c4cc87d9d1557ddd4cae4b06b79696712f61a2ad.tar.gz
r7r-repo-c4cc87d9d1557ddd4cae4b06b79696712f61a2ad.tar.bz2
r7r-repo-c4cc87d9d1557ddd4cae4b06b79696712f61a2ad.zip
New directory hierachy. index and setup implemented.
Diffstat (limited to 'r7r_repo/templates/src/home.html')
-rw-r--r--r7r_repo/templates/src/home.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/r7r_repo/templates/src/home.html b/r7r_repo/templates/src/home.html
new file mode 100644
index 0000000..bf9623a
--- /dev/null
+++ b/r7r_repo/templates/src/home.html
@@ -0,0 +1,35 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <h2>Latest Packages</h2>
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th>Package Name</th>
+ <th>Version</th>
+ <th>Description</th>
+ <th>Last update</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:if>
+ <ste:set var="pkgs_n"><ste:arraylen array="latest_pkgs" /></ste:set>
+ ~{$pkgs_n|gt|0}
+ <ste:then>
+ <ste:foreach array="latest_pkgs" value="pkg">
+ <tr>
+ <td><ste:escape>$pkg[name]</ste:escape></td>
+ <td><ste:escape>$pkg[version]</ste:escape></td>
+ <td><ste:escape>$pkg[description]</ste:escape></td>
+ <td><ste:date format="%d. %h. %Y, %H:%M:%S">$pkg[last_update]</ste:date></td>
+ </tr>
+ </ste:foreach>
+ </ste:then>
+ <ste:else>
+ <tr>
+ <td style="text-align: center; font-style: italic;" colspan="4">No Packages available.</td>
+ </tr>
+ </ste:else>
+ </ste:if>
+ </tbody>
+ </table>
+</ste:block>