--- a/templates/image.html Thu Dec 20 17:42:04 2007 +0000
+++ b/templates/image.html Fri Dec 21 20:36:03 2007 +0000
@@ -1,30 +1,27 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<%inherit file="master.html" /> <!-- %> -->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title><!-- TITLE --></title>
- <link rel="Stylesheet" type="text/css" href="<!-- STYLE_URL -->" />
- <link rel="up" href="<!-- UP_URL -->" />
- <link rel="prev" href="<!-- PREV_URL -->" />
- <link rel="next" href="<!-- NEXT_URL -->" />
- </head>
- <body>
- <div id="breadcrumb"><!-- BREADCRUMB --></div>
<div id="image">
- <h1><!-- TITLE --></h1>
- <p><!-- PREVIOUS_THUMB --> <!-- IMAGE --> <!-- NEXT_THUMB --></p>
- <p><!-- DESCRIPTION --></p>
+ <h1>${title}</h1>
+ <p>
+% if prev :
+ ${h.tag_for_img(prev.html_name, prev.thumb_name)}
+% endif
+
+ ${h.tag_for_img(img.html_name, img.preview_name)}
+
+% if next :
+ ${h.tag_for_img(next.html_name, next.thumb_name)}
+% endif
+ </p>
+ <p>
+ ${description}
+ </p>
</div>
<div id="info">
- <p><!-- FILE --></p>
- <p><!-- IMGSIZE --></p>
- <p><!-- FILESIZE --></p>
- <p><!-- TIMESTAMP --></p>
- <p>ShortURL: <a href="<!-- SHORTURL -->" rel="nofollow"><!-- SHORTURL_CODE --></a></p>
- <p><a href="<!-- SERIES_URL -->" rel="nofollow"><!-- SERIES_VERB --></a> series</p>
+ <p>${filename}</p>
+ <p>${h.format_imgsize(img_size)}</p>
+ <p>${h.format_filesize(file_size)}</p>
+ <p>${h.format_timestamp(timestamp)}</p>
+ <p>ShortURL: <a href="${shorturl}" rel="nofollow">${shorturl_code}</a></p>
+ <p><a href="${series_url}" rel="nofollow">${series_verb}</a> series</p>
</div>
- <p id="about"><a href="http://marttila.de/~terom/degal/">DeGAL</a> <!-- VERSION --></p>
- </body>
-</html>