aboutsummaryrefslogtreecommitdiff
path: root/r7r_repo/templates/src
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-06 01:07:16 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-06 01:07:16 +0100
commit484b1d09adf46f94fb409bf125ceb156be267e31 (patch)
tree34a9e9a50169e8c540831377eb2fffd940e475cc /r7r_repo/templates/src
parent0be7711b7c673cb086da798cd080de3d55f75a1f (diff)
downloadr7r-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')
-rw-r--r--r7r_repo/templates/src/package.html37
-rw-r--r--r7r_repo/templates/src/upload.html12
2 files changed, 49 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>
diff --git a/r7r_repo/templates/src/upload.html b/r7r_repo/templates/src/upload.html
new file mode 100644
index 0000000..5b46da1
--- /dev/null
+++ b/r7r_repo/templates/src/upload.html
@@ -0,0 +1,12 @@
+<ste:load name="master.html" />
+<ste:block name="content">
+ <ste:default_error />
+ <ste:default_success />
+
+ <form action="$rel_path_to_root/upload" method="POST" accept-charset="UTF-8" enctype="multipart/form-data">
+ <h2>Upload a new package</h2>
+
+ <strong>Package file:</strong> <input type="file" name="pkgfile" /><br />
+ <input type="submit" name="upload_package" />
+ </form>
+</ste:block>