Skip to content

Commit

Permalink
make thumb size in folder contents listing adjustable/supressable (us…
Browse files Browse the repository at this point in the history
…es site control panel settings: thumb_size_tables ...) plone/Products.CMFPlone#1734
  • Loading branch information
fgrcon committed Sep 21, 2016
1 parent 81f97ab commit 701e40b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mockup/patterns/structure/js/views/tablerow.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define([
data.portal_type = data.portal_type ? data.portal_type : '';
data.contenttype = data.portal_type.toLowerCase().replace(/\.| /g, '-');
data._authenticator = utils.getAuthenticator();
data.iconSize = self.app.iconSize;
data.thumbSize = self.app.thumbSize;

var viewAction = self.app.typeToViewAction && self.app.typeToViewAction[data.attributes.portal_type] || '';
data.viewURL = data.attributes.getURL + viewAction;
Expand Down
1 change: 0 additions & 1 deletion mockup/patterns/structure/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ define([

activeColumnsCookie: 'activeColumns',

iconSize: 'thumb',

/*
As the options operate on a merging basis per new attribute
Expand Down
4 changes: 2 additions & 2 deletions mockup/patterns/structure/templates/tablerow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<span class="plone-item-expired"><%- _t('Expired') %></span>
<% } %>
</div>
<% if(attributes["getIcon"] ){ %>
<img class="image-<%- iconSize %> pull-right" src="<%- getURL %>/@@images/image/<%- iconSize %>">
<% if(attributes["getIcon"] && ( thumbSize != 'none') ){ %>
<img class="image-<%- thumbSize %> pull-right" src="<%- getURL %>/@@images/image/<%- thumbSize %>">
<% } %>
</td>

Expand Down

0 comments on commit 701e40b

Please sign in to comment.