aboutsummaryrefslogtreecommitdiff
path: root/r7r_repo/templates/src/package_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'r7r_repo/templates/src/package_list.html')
-rw-r--r--r7r_repo/templates/src/package_list.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/r7r_repo/templates/src/package_list.html b/r7r_repo/templates/src/package_list.html
new file mode 100644
index 0000000..e610860
--- /dev/null
+++ b/r7r_repo/templates/src/package_list.html
@@ -0,0 +1,41 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:default_error />
+ <ste:default_success />
+
+ <h2><ste:escape>$list_heading</ste:escape></h2>
+
+ <table class="listtab fullwidth">
+ <thead>
+ <tr>
+ <th>Package Name</th>
+ <th>Version</th>
+ <th>Description</th>
+ <th>Author</th>
+ <th>Last update</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ste:if>
+ <ste:set var="pkgs_n"><ste:arraylen array="pkgs" /></ste:set>
+ ~{$pkgs_n|gt|0}
+ <ste:then>
+ <ste:foreach array="pkgs" value="pkg">
+ <tr>
+ <td><a href="$rel_path_to_root/p/<ste:escape>$pkg[name]</ste:escape>"><ste:escape>$pkg[name]</ste:escape></a></td>
+ <td><ste:escape>$pkg[version]</ste:escape></td>
+ <td><ste:escape>$pkg[description]</ste:escape></td>
+ <td><ste:escape>$pkg[author]</ste:escape></td>
+ <td><ste:date timestamp="$pkg[last_update]">%d. %h. %Y, %H:%M:%S</ste:date></td>
+ </tr>
+ </ste:foreach>
+ </ste:then>
+ <ste:else>
+ <tr>
+ <td style="text-align: center; font-style: italic;" colspan="5">No Packages found.</td>
+ </tr>
+ </ste:else>
+ </ste:if>
+ </tbody>
+ </table>
+</ste:block>