Skip to content

Commit

Permalink
Merge pull request #70 from plone/es6-pat-contentrules
Browse files Browse the repository at this point in the history
move contentrules js into mockup/pat/controlpanels
  • Loading branch information
thet authored Mar 24, 2022
2 parents 97fccc1 + 86b8420 commit f1f8352
Show file tree
Hide file tree
Showing 14 changed files with 574 additions and 897 deletions.
2 changes: 2 additions & 0 deletions news/70-2.breaking
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remove handling of Archetypes and portal_factory.
[pbauer]
2 changes: 2 additions & 0 deletions news/70.breaking
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Improve management UI and move JS to mockup es6.
[agitator, MrTango]
15 changes: 0 additions & 15 deletions plone/app/contentrules/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,6 @@

</configure>

<!-- Resources -->
<browser:resource
name="manage-contentrules.js"
file="contentrules.js"
/>
<!-- Resources -->
<browser:resource
name="manage-contentrule-elements.js"
file="contentrule-elements.js"
/>
<browser:resource
name="manage-contentrules.css"
file="contentrules.css"
/>

<!-- Rule breadcrumb -->

<browser:page
Expand Down
69 changes: 0 additions & 69 deletions plone/app/contentrules/browser/contentrule-elements.js

This file was deleted.

44 changes: 0 additions & 44 deletions plone/app/contentrules/browser/contentrules.css

This file was deleted.

133 changes: 0 additions & 133 deletions plone/app/contentrules/browser/contentrules.js

This file was deleted.

6 changes: 4 additions & 2 deletions plone/app/contentrules/browser/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def assignments(self):
'url': site.absolute_url(),
'title': site.title_or_id(),
'description': site.Description(),
})
'icon': 'plone-home'
})

catalog = getToolByName(rule, 'portal_catalog')
for a in catalog(path=dict(query=list(paths), depth=0),
Expand All @@ -170,7 +171,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
Loading

0 comments on commit f1f8352

Please sign in to comment.