aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-18 01:03:10 +0100
committerGravatar Tom Willemse2013-11-18 01:03:10 +0100
commit9788df48a9638c6bf37bc161abefcee7f583b64c (patch)
tree985ab921bc370df3449d3f248451591b2718684b /templates
parent96bfb88a5e348c7bfad56d34eebaa891b68e2773 (diff)
downloadhypo-9788df48a9638c6bf37bc161abefcee7f583b64c.tar.gz
hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.zip
Use git and filesystem as data back-end
Diffstat (limited to 'templates')
-rw-r--r--templates/image.html6
-rw-r--r--templates/main.html14
2 files changed, 10 insertions, 10 deletions
diff --git a/templates/image.html b/templates/image.html
index 7c02617..f49c13a 100644
--- a/templates/image.html
+++ b/templates/image.html
@@ -1,4 +1,4 @@
-$def with (name)
+$def with (name, hash)
$# Hypo -- Quickly share stuff
$# Copyright (C) 2013 Tom Willemse
$#
@@ -15,6 +15,6 @@ $#
$# You should have received a copy of the GNU Affero General Public
$# License along with Hypo. If not, see <http://www.gnu.org/licenses/>.
-<a href="raw/$name">
- <img src="raw/$name" alt="$name">
+<a href="raw/$hash/$name">
+ <img src="raw/$hash/$name" alt="$name">
</a>
diff --git a/templates/main.html b/templates/main.html
index d39d1a9..98fc6e8 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -1,4 +1,4 @@
-$def with (content, style, file)
+$def with (content, style, file, hash)
$# Hypo -- Quickly share stuff
$# Copyright (C) 2013 Tom Willemse
$#
@@ -17,7 +17,7 @@ $# License along with Hypo. If not, see <http://www.gnu.org/licenses/>.
<!DOCTYPE html>
<html>
<head>
- <title>Hypo: $file.filename</title>
+ <title>Hypo: $file</title>
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css"
type="text/css" rel="stylesheet" />
<style>$:style</style>
@@ -27,15 +27,15 @@ $# License along with Hypo. If not, see <http://www.gnu.org/licenses/>.
<div class="navbar navbar-static-top navbar-inverse">
<div class="navbar-inner">
<a class="brand">Hypo</a>
- <ul class="nav">
- <li><a href="raw/$file.shash">Raw</a></li>
- <li><a href="dl/$file.shash">Download</a></li>
- </ul>
</div>
</div>
<div class="container">
- <h1>$file.filename</h1>
+ <h1>
+ $file
+ <a href="raw/$hash/$file"><i class="icon-file"></i></a>
+ <a href="dl/$hash/$file"><i class="icon-download"></i></a>
+ </h1>
<div class="row">$:content</div>