diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/image.html | 6 | ||||
-rw-r--r-- | templates/main.html | 14 |
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> |