Permalink
Browse files

Use larger images for module views (client).

  • Loading branch information...
1 parent f733ad3 commit fbe6c12802fb6e0b7e96de37c3d0e814a236f19a @wichert wichert committed Apr 17, 2012
View
1 Prototype/module.html
@@ -29,6 +29,7 @@
Werksoorten
</h1>
<form method="post" action="#">
+ <a rel="fancybox" class="floatAfter" title="This is the image caption"><img src="media/Smeg.png"/></a>
<p class="description">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </p>
View
8 docs/changes.rst
@@ -9,6 +9,14 @@ Upgrade notes
No special upgrade steps are needed for this release.
+Feature changes
+~~~~~~~~~~~~~~~
+
+- Use a slightly larger image size for the module views, and enable
+ image zoom (fancybox). This fixes `TNO ticket 209
+ <https://code.simplon.biz/tracker/tno-euphorie/ticket/209>`_.
+ [wichert]
+
Bugfixes
~~~~~~~~
View
5 src/euphorie/client/templates/module_actionplan.pt
@@ -16,8 +16,9 @@
<body tal:define="module nocall:view/module" class="actionplan ${webhelpers/extra_css}">
<h1>${view/title}</h1>
- <img alt="" class="floatBefore" tal:define="images module/@@images; scale python:images.scale('image', width=150, height=500, direction='thumbnail')"
- tal:condition="scale" src="${scale/url}" width="${scale/width}" height="${scale/height}"/>
+ <a tal:define="images module/@@images; scale python:images.scale('image', width=200, height=500, direction='thumbnail')"
+ tal:condition="scale" rel="fancybox" class="floatAfter" href="${module/absolute_url}/@@download/image/${module/image/filename}">
+ <img alt="" src="${scale/url}" width="${scale/width}" height="${scale/height}"/></a>
<p tal:replace="structure module/description">
This is a description of the module.
View
5 src/euphorie/client/templates/module_evaluation.pt
@@ -16,8 +16,9 @@
<body tal:define="module nocall:view/module" class="evaluation ${webhelpers/extra_css}">
<h1>${view/title}</h1>
- <img alt="" class="floatBefore" tal:define="images module/@@images; scale python:images.scale('image', width=150, height=500, direction='thumbnail')"
- tal:condition="scale" src="${scale/url}" width="${scale/width}" height="${scale/height}"/>
+ <a tal:define="images module/@@images; scale python:images.scale('image', width=200, height=500, direction='thumbnail')"
+ tal:condition="scale" rel="fancybox" class="floatAfter" href="${module/absolute_url}/@@download/image/${module/image/filename}">
+ <img alt="" src="${scale/url}" width="${scale/width}" height="${scale/height}"/></a>
<p tal:content="structure module/description">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem
View
5 src/euphorie/client/templates/module_identification.pt
@@ -17,8 +17,9 @@
<h1>${module/title}</h1>
<form enctype="multipart/form-data" accept-charset="UTF-8" method="post" action="${context/absolute_url}">
- <img alt="" class="floatBefore" tal:define="images module/@@images; scale python:images.scale('image', width=150, height=500, direction='thumbnail')"
- tal:condition="scale" src="${scale/url}" width="${scale/width}" height="${scale/height}"/>
+ <a tal:define="images module/@@images; scale python:images.scale('image', width=200, height=500, direction='thumbnail')"
+ tal:condition="scale" rel="fancybox" class="floatAfter" href="${module/absolute_url}/@@download/image/${module/image/filename}">
+ <img alt="" src="${scale/url}" width="${scale/width}" height="${scale/height}"/></a>
<p tal:content="structure module/description">
Sed ut perspiciatis unde omnis iste natus error sit voluptatem

0 comments on commit fbe6c12

Please sign in to comment.