Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to show/hide thumbs in site-controlpanel #1245

Merged
merged 2 commits into from
Nov 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Changelog

New:

- Add option to show/hide thumbs in site-controlpanel
https://github.com/plone/Products.CMFPlone/issues/1241
[fgrcon]

- Explicitly provide id on search form and not depend on diazo magic
adding the id in.
[vangheem]
Expand Down
13 changes: 12 additions & 1 deletion Products/CMFPlone/interfaces/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,18 @@ class ISiteSchema(Interface):
SimpleTerm('authenticated', 'authenticated',
_('For authenticated users only'))]),
required=True)


thumb_visibility = schema.Choice(
title=_(u'Thumb visibility'),
description=_(u'Show thumbs in listings'),
default=u'enabled',
vocabulary=SimpleVocabulary([
SimpleTerm('false', 'false', _(u'Never')),
SimpleTerm('enabled', 'enabled', _(u'Always')),
SimpleTerm('authenticated', 'authenticated',
_(u'For authenticated users only'))]),
required=True)

toolbar_position = schema.Choice(
title=_(u'Position where the toolbar is displayed'),
description=_(
Expand Down
2 changes: 1 addition & 1 deletion Products/CMFPlone/static/plone-compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Products/CMFPlone/static/plone-compiled.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Products/CMFPlone/static/plone-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -18489,5 +18489,5 @@ require([

});

define("/Users/nathan/code/coredev5/src/Products.CMFPlone/Products/CMFPlone/static/plone.js", function(){});
define("/usr/local/p5dev/buildout.coredev/src/Products.CMFPlone/Products/CMFPlone/static/plone.js", function(){});

12 changes: 6 additions & 6 deletions Products/CMFPlone/static/plone-compiled.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Products/CMFPlone/static/plone-compiled.min.js.map

Large diffs are not rendered by default.

Loading