diff zpt/project/edit_images.zpt @ 96:2dd8e3be4a8e

add project image link. fix edit image template bug.
author casties
date Thu, 16 May 2013 15:58:28 +0200
parents 04fb655633ef
children 7b96a85552aa
line wrap: on
line diff
--- a/zpt/project/edit_images.zpt	Thu May 16 15:05:57 2013 +0200
+++ b/zpt/project/edit_images.zpt	Thu May 16 15:58:28 2013 +0200
@@ -11,6 +11,7 @@
         <th />
         <th>Image</th>
         <th>Caption</th>
+        <th>Link</th>
         <th />
       </tr>
       <tal:block tal:repeat="image images">
@@ -23,14 +24,15 @@
             <img tal:attributes="src image/absolute_url" /><br/>
             <span tal:content="string:(${image/width}x${image/height}px)"/>
           </td>
-          <td tal:content="structure python:getattr(image,'caption','')" />
+          <td tal:content="structure image/getCaption" />
+          <td tal:content="structure image/getLink" />
           <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a
             tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td>
         </tr>
       </tal:block>
     </table>
     <p>
-      The image for the project description should have a width of 220px.
+      The image for the project description should have a width of 230px.
     </p>
     <p>
       The last image in the list is used as the project thumbnail image (140x87px): <img align="middle" width="140" height="87"