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

new behavior: IThumbIconHandling, supress thumbs /icons, adjust thumb… #368

Merged
merged 4 commits into from
Jun 1, 2017

Conversation

fgrcon
Copy link
Member

@fgrcon fgrcon commented Aug 31, 2016

… size, templates adapted

see plone/Products.CMFPlone#1734

@fgrcon fgrcon force-pushed the plip1734thumbs branch 3 times, most recently from 33faca6 to 8ff9499 Compare September 3, 2016 10:02
@jensens
Copy link
Member

jensens commented Sep 12, 2016

You may want to label this yourself as 22 status: in-progress?

@@ -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
Copy link
Member

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)
Copy link
Member

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.

@jensens
Copy link
Member

jensens commented Apr 9, 2017

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"
Copy link
Member

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)

@ebrehault ebrehault merged commit d82aa0a into master Jun 1, 2017
@fgrcon fgrcon deleted the plip1734thumbs branch June 5, 2017 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants