diff options
author | Tom Willemse | 2013-11-18 01:03:10 +0100 |
---|---|---|
committer | Tom Willemse | 2013-11-18 01:03:10 +0100 |
commit | 9788df48a9638c6bf37bc161abefcee7f583b64c (patch) | |
tree | 985ab921bc370df3449d3f248451591b2718684b /templates/main.html | |
parent | 96bfb88a5e348c7bfad56d34eebaa891b68e2773 (diff) | |
download | hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.tar.gz hypo-9788df48a9638c6bf37bc161abefcee7f583b64c.zip |
Use git and filesystem as data back-end
Diffstat (limited to 'templates/main.html')
-rw-r--r-- | templates/main.html | 14 |
1 files changed, 7 insertions, 7 deletions
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> |