diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-01-06 01:07:16 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-01-06 01:07:16 +0100 |
commit | 484b1d09adf46f94fb409bf125ceb156be267e31 (patch) | |
tree | 34a9e9a50169e8c540831377eb2fffd940e475cc /r7r_repo/templates/src/package.html | |
parent | 0be7711b7c673cb086da798cd080de3d55f75a1f (diff) | |
download | r7r-repo-484b1d09adf46f94fb409bf125ceb156be267e31.tar.gz r7r-repo-484b1d09adf46f94fb409bf125ceb156be267e31.tar.bz2 r7r-repo-484b1d09adf46f94fb409bf125ceb156be267e31.zip |
package viewer and upload implemented.
Diffstat (limited to 'r7r_repo/templates/src/package.html')
-rw-r--r-- | r7r_repo/templates/src/package.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/r7r_repo/templates/src/package.html b/r7r_repo/templates/src/package.html new file mode 100644 index 0000000..b40f583 --- /dev/null +++ b/r7r_repo/templates/src/package.html @@ -0,0 +1,37 @@ +<ste:load name="master.html" /> +<ste:block name="content"> + <ste:default_error /> + <ste:default_success /> + + <h2><ste:escape>$package[name]</ste:escape></h2> + <ste:escape>$package[description]</ste:escape> + + <p><a href="$rel_path_to_root/packages/<ste:escape>$package[name]</ste:escape>/versions/current">Download package.</a></p> + + <p><strong>Current version:</strong> <ste:escape>$package[version]</ste:escape></p> + <p><strong>Author:</strong> <ste:escape>$package[author]</ste:escape></p> +</ste:block> +<ste:if> + $package[admin_mode] + <ste:then> + <ste:block name="additional_metabar_modules"> + <div class="metabar_module"> + <form action="$rel_path_to_root/p/<ste:escape>$package[name]</ste:escape>" method="POST" accept-charset="UTF-8" enctype="multipart/form-data"> + <h2>Upload a new version</h2> + <input type="file" name="pkgfile" /><br /> + <input type="submit" name="new_version" /> + </form> + </div> + <div class="metabar_module"> + <form action="$rel_path_to_root/p/<ste:escape>$package[name]</ste:escape>" method="POST" accept-charset="UTF-8"> + <h2>Delete package</h2> + <input type="submit" name="delete_package" /> + <select name="really_delete"> + <option value="yes">Yes</option> + <option value="no" selected="selected">No</option> + </select> + </form> + </div> + </ste:block> + </ste:then> +</ste:if> |