-
Notifications
You must be signed in to change notification settings - Fork 48
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
new behavior: IThumbIconHandling, supress thumbs /icons, adjust thumb… #368
Conversation
33faca6
to
8ff9499
Compare
You may want to label this yourself as |
db0a80d
to
cf6c078
Compare
4bf5e9d
to
c207823
Compare
@@ -1,6 +1,8 @@ | |||
# -*- coding: utf-8 -*- | |||
from Acquisition import aq_base | |||
from Acquisition import aq_inner | |||
from Products.CMFPlone.interfaces import ISiteSchema | |||
from Products.CMFPlone.interfaces import ISiteSchema |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imported twice!
return settings.thumb_size_summary | ||
|
||
def show_icons(self): | ||
return not getattr(self.context,'suppress_icons',False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after ,
a space is expected.
Please check your code with code-analysis. |
… size, templates adapted replaced paper clip icon(fontello) with mime type icons from mimetype registry for file objects plone/Products.CMFPlone#1734
fixed review findings flake8
tal:attributes="href item_link; | ||
class string:$item_type_class $item_wf_state_class url; | ||
title item_type"> | ||
<image class="mime-icon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why we should use image instead of img here? (just curious)
… size, templates adapted
see plone/Products.CMFPlone#1734