remove old templates
authorTero Marttila <terom@fixme.fi>
Fri, 05 Jun 2009 23:06:13 +0300
changeset 74 3bf1adf13fdf
parent 73 8897352630a5
child 75 18b3b1926720
remove old templates
degal/templates/gallery.html
degal/templates/image.html
degal/templates/master.html
--- a/degal/templates/gallery.html	Fri Jun 05 23:06:06 2009 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-<%inherit file="master.html" /> 
-
-<%def name="pagination(num_pages, cur_page)"> 
-% if num_pages > 1 :
-        <ul>
-%   if cur_page > 0 :
-            <li><a href="${h.url_for_page(cur_page - 1)}">&laquo; Prev</a></li>
-%   else :
-            <li><span>&laquo; Prev</span></li>
-%   endif
-
-%   for page in xrange(0, num_pages) :
-%     if page == cur_page :
-            <li><strong>${page + 1}</strong></li>
-%     else :
-            <li><a href="${h.url_for_page(page)}">${page + 1}</a></li>
-%     endif            
-%   endfor
-
-%   if cur_page < num_pages - 1 :
-            <li><a href="${h.url_for_page(cur_page + 1)}">Next &raquo;</a></li>
-%   else :
-            <li><span>Next &raquo;</span></li>
-%   endif
-        </ul>
-% endif       
-</%def>
-
-    <h1>${title}</h1>
-    <div id="dirs">
-% if dirs :
-        <ul>
-%   for dir in dirs :
-            <li><a href="${dir.name}">${dir.title}</a></li>
-%   endfor
-        </ul>
-% endif
-    </div>
-    <div class="paginate">
-${pagination(num_pages, cur_page)}
-    </div>
-    <div id="thumbnails">
-% for img in images :
-        ${h.tag_for_img(img.html_name, img.thumb_name)}
-% endfor
-    </div>
-    <div class="paginate">
-${pagination(num_pages, cur_page)}
-    </div>
-    <p id="description">
-${description}
-    </p>
-% if shorturl :    
-    <div id="info">
-        <p>ShortURL: <a href="${shorturl}" rel="nofollow">${shorturl_code}</a></p>
-    </div>
-% endif    
--- a/degal/templates/image.html	Fri Jun 05 23:06:06 2009 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-<%inherit file="master.html" />
-
-    <div id="image">
-        <h1>${title}</h1>
-        <p>
-% if prev :        
-            ${h.tag_for_img(prev.html_name, prev.thumb_name)}
-% endif
-            
-            ${h.tag_for_img(img.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">
-% if img_size and file_size and timestamp :    
-      <p>File name: ${filename}</p>
-      <p>Dimensions: ${h.format_imgsize(img_size)}</p>
-      <p>File size: ${h.format_filesize(file_size)}</p>
-      <p>Last modified: ${h.format_timestamp(timestamp)}</p>
-%   for key, value in exif_data :
-      <p>${key}: ${value}</p>
-%   endfor
-% endif   
-
-      <p>ShortURL: <a href="${shorturl}" rel="nofollow">${shorturl_code}</a></p>
-% if series_url :      
-      <p><a href="${series_url}" rel="nofollow">${series_verb}</a> series</p>
-% endif      
-    </div>
--- a/degal/templates/master.html	Fri Jun 05 23:06:06 2009 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-<?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">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
-  <head>
-    <title>${title}</title>
-    <link rel="Stylesheet" type="text/css" href="${stylesheet_url}" />
-  </head>
-  <body>
-    <div id="breadcrumb">
-% for (( bc_url, bc_title), is_first) in h.iter_is_first(breadcrumb) :
-%   if not is_first :
-        &raquo;
-%   endif
-        <a href="${bc_url}">${bc_title}</a>
-% endfor
-    </div>
-    ${next.body()}
-    <p id="about"><a href="http://projects.qmsk.net/degal">DeGAL</a> ${version}</p>
-  </body>
-</html>