Skip to content

Commit

Permalink
Merge pull request #72 from fgrcon/master
Browse files Browse the repository at this point in the history
fix relatedItemBox: show thumbs, title and desc correctly
  • Loading branch information
fgrcon committed Nov 12, 2015
2 parents 2af01a7 + f6c3aef commit b323795
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Fixes:

- *add item here*

- fix relatedItemBox: show thumbs, title and desc correctly
https://github.com/plone/Products.CMFPlone/issues/1226
[fgrcon]

2.5.16 (2015-10-28)
-------------------
Expand Down
23 changes: 14 additions & 9 deletions plone/app/layout/viewlets/document_relateditems.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
item_wf_state item/review_state|python: context_state.workflow_state();
item_wf_state_class python: 'state-' + normalizeString(item_wf_state);
item_url item/getURL|item/absolute_url;
item_url python:(item_type in use_view_action) and item_url+'/view' or item_url"
tal:attributes="class item_type_class">
<a href="" class=""
tal:attributes="href item_url;
title desc;
class string:$item_wf_state_class"
tal:content="item/pretty_title_or_id">
Related Item
</a>
item_url python:(item_type in use_view_action) and item_url+'/view' or item_url;
item_has_image python:item.getIcon"
tal:attributes="title item_type">
<a >
<img class="image-icon"
tal:define="getIcon python:item.getURL() +'/@@images/image/icon'"
tal:condition="item_has_image"
tal:attributes="src string:$getIcon">
<span tal:attributes="class string:$item_type_class $item_wf_state_class url;"
tal:content="item/pretty_title_or_id">
Item Title</span>
<span class="discreet"
tal:content="item/Description">
</a>
</span>
</li>
</ul>
Expand Down

0 comments on commit b323795

Please sign in to comment.