Mercurial > hg > MPIWGWeb
comparison 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 |
comparison
equal
deleted
inserted
replaced
95:1b8be917a167 | 96:2dd8e3be4a8e |
---|---|
9 <table tal:define="images here/getImageList" tal:condition="images"> | 9 <table tal:define="images here/getImageList" tal:condition="images"> |
10 <tr> | 10 <tr> |
11 <th /> | 11 <th /> |
12 <th>Image</th> | 12 <th>Image</th> |
13 <th>Caption</th> | 13 <th>Caption</th> |
14 <th>Link</th> | |
14 <th /> | 15 <th /> |
15 </tr> | 16 </tr> |
16 <tal:block tal:repeat="image images"> | 17 <tal:block tal:repeat="image images"> |
17 <tr tal:define="imgid image/getId"> | 18 <tr tal:define="imgid image/getId"> |
18 <td> | 19 <td> |
21 </td> | 22 </td> |
22 <td> | 23 <td> |
23 <img tal:attributes="src image/absolute_url" /><br/> | 24 <img tal:attributes="src image/absolute_url" /><br/> |
24 <span tal:content="string:(${image/width}x${image/height}px)"/> | 25 <span tal:content="string:(${image/width}x${image/height}px)"/> |
25 </td> | 26 </td> |
26 <td tal:content="structure python:getattr(image,'caption','')" /> | 27 <td tal:content="structure image/getCaption" /> |
28 <td tal:content="structure image/getLink" /> | |
27 <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a | 29 <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a |
28 tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td> | 30 tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td> |
29 </tr> | 31 </tr> |
30 </tal:block> | 32 </tal:block> |
31 </table> | 33 </table> |
32 <p> | 34 <p> |
33 The image for the project description should have a width of 220px. | 35 The image for the project description should have a width of 230px. |
34 </p> | 36 </p> |
35 <p> | 37 <p> |
36 The last image in the list is used as the project thumbnail image (140x87px): <img align="middle" width="140" height="87" | 38 The last image in the list is used as the project thumbnail image (140x87px): <img align="middle" width="140" height="87" |
37 tal:attributes="src here/getThumbUrl" /> | 39 tal:attributes="src here/getThumbUrl" /> |
38 </p> | 40 </p> |