degal/templates/image.html
author Tero Marttila <terom@fixme.fi>
Wed, 03 Jun 2009 19:03:28 +0300
branchuse-distutils
changeset 41 3b1579a7bffb
parent 33 templates/image.html@4943047bfcb5
child 62 53e798708413
permissions -rw-r--r--
reorganize files to move lib, templates, www into 'degal' package, keep separate 'cgi-bin' for now
23
10841abbc01f taggr2, which is starting to shape up
terom
parents: 19
diff changeset
     1
<%! use_javascript = False %>
12
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     2
<%inherit file="master.html" /> <!-- %> -->
1
740133ab6353 initial code, somewhere between 0.2 and 0.5
terom
parents:
diff changeset
     3
740133ab6353 initial code, somewhere between 0.2 and 0.5
terom
parents:
diff changeset
     4
    <div id="image">
12
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     5
        <h1>${title}</h1>
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     6
        <p>
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     7
% if prev :        
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     8
            ${h.tag_for_img(prev.html_name, prev.thumb_name)}
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
     9
% endif
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    10
            
16
980825f2aeed fix settings.IMAGE_COUNT back to 50, and fix image.html to link to the raw image, not itself
terom
parents: 12
diff changeset
    11
            ${h.tag_for_img(img.name, img.preview_name)}
12
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    12
            
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    13
% if next :            
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    14
            ${h.tag_for_img(next.html_name, next.thumb_name)}
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    15
% endif
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    16
        </p>
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    17
        <p>
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    18
            ${description}
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    19
        </p>
1
740133ab6353 initial code, somewhere between 0.2 and 0.5
terom
parents:
diff changeset
    20
    </div>
740133ab6353 initial code, somewhere between 0.2 and 0.5
terom
parents:
diff changeset
    21
    <div id="info">
19
8d3ffd87cb0b * move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents: 16
diff changeset
    22
% if img_size and file_size and timestamp :    
33
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    23
      <p>File name: ${filename}</p>
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    24
      <p>Dimensions: ${h.format_imgsize(img_size)}</p>
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    25
      <p>File size: ${h.format_filesize(file_size)}</p>
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    26
      <p>Last modified: ${h.format_timestamp(timestamp)}</p>
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    27
% for key, value in exif_data :
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    28
      <p>${key}: ${value}</p>
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    29
% endfor
4943047bfcb5 merged http://pajukanta.fi/temp/degal_exif_r33.tar.bz2 patch from Japsu
terom
parents: 23
diff changeset
    30
19
8d3ffd87cb0b * move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents: 16
diff changeset
    31
% endif    
12
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    32
      <p>ShortURL: <a href="${shorturl}" rel="nofollow">${shorturl_code}</a></p>
19
8d3ffd87cb0b * move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents: 16
diff changeset
    33
% if series_url :      
12
c2d8e9a754a1 Major code restructuring. Version is now 0.5, templates use Mako, and the code is split off into several files under lib/
terom
parents: 4
diff changeset
    34
      <p><a href="${series_url}" rel="nofollow">${series_verb}</a> series</p>
19
8d3ffd87cb0b * move cgi-bin to de-cgi-bin so it doesn't conflict with my default alias... need to come up with a real solution to this
terom
parents: 16
diff changeset
    35
% endif      
1
740133ab6353 initial code, somewhere between 0.2 and 0.5
terom
parents:
diff changeset
    36
    </div>