Skip to content

Commit

Permalink
fix icons
Browse files Browse the repository at this point in the history
  • Loading branch information
agitator committed Jan 12, 2022
1 parent cdd31e2 commit 5add301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion plone/app/contentrules/browser/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def assignments(self):
'url': a.getURL(),
'title': a.Title or a.getId,
'description': a.Description,
})
'icon': f'contenttype/{a.portal_type.lower()}'
})

return info

Expand Down
7 changes: 3 additions & 4 deletions plone/app/contentrules/browser/templates/manage-elements.pt
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,9 @@
</span>

<tal:items repeat="assignment assignments">

<a tal:attributes="href string:${assignment/url}/@@manage-content-rules"
tal:content="assignment/title" />

<a tal:attributes="href string:${assignment/url}/@@manage-content-rules">
<tal:icon tal:replace="structure python:icons.tag(assignment['icon'])" /><span class="ms-2" tal:content="assignment/title">title</span>
</a>&nbsp;
</tal:items>
</div>
</tal:assignments>
Expand Down

0 comments on commit 5add301

Please sign in to comment.