Skip to content

Commit

Permalink
[fc] Repository: plone.app.layout
Browse files Browse the repository at this point in the history
Branch: refs/heads/master
Date: 2017-06-17T11:35:45+02:00
Author: Franz Gerhard Reinisch (fgrcon) <[email protected]>
Commit: plone/plone.app.layout@80274e7

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/layout/viewlets/document_relateditems.pt
Repository: plone.app.layout
Branch: refs/heads/master
Date: 2017-06-17T23:39:47+02:00
Author: Johannes Raggam (thet) <[email protected]>
Commit: plone/plone.app.layout@6acbcaa

Merge pull request #125 from plone/fgrcon-fix-2077

fixing plone/Products.CMFPlone#2077

Files changed:
M CHANGES.rst
M plone/app/layout/viewlets/document_relateditems.pt
  • Loading branch information
thet committed Jun 17, 2017
1 parent c2b40e0 commit c059bde
Showing 1 changed file with 45 additions and 75 deletions.
120 changes: 45 additions & 75 deletions last_commit.txt
Original file line number Diff line number Diff line change
@@ -1,120 +1,90 @@
Repository: mockup
Repository: plone.app.layout


Branch: refs/heads/master
Date: 2017-06-17T11:26:04+02:00
Date: 2017-06-17T11:35:45+02:00
Author: Franz Gerhard Reinisch (fgrcon) <[email protected]>
Commit: https://github.com/plone/mockup/commit/1922b8c43afc2e49894543c5d3af104eb4e5e125
Commit: https://github.com/plone/plone.app.layout/commit/80274e75de4c438b25993690582bc510b731ff5a

fixing https://github.com/plone/Products.CMFPlone/issues/2077

Files changed:
M CHANGES.rst
M mockup/patterns/structure/templates/tablerow.xml
M mockup/tests/pattern-structure-test.js
M plone/app/layout/viewlets/document_relateditems.pt

diff --git a/CHANGES.rst b/CHANGES.rst
index 9cb139ae..da9837d7 100644
index dde2e5a..b0f3557 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -50,6 +50,11 @@ New features:
@@ -20,6 +20,10 @@ New features:

Bug fixes:

+- fixed css-classes for thumb scales ...
+ https://github.com/plone/Products.CMFPlone/issues/2077
+ [fgrcon]
+
+
- modal: Fixed duplicate window.confirm on form unload.
Fixes `issue 777 <https://github.com/plone/mockup/issues/777>`_.
[seanupton]
diff --git a/mockup/patterns/structure/templates/tablerow.xml b/mockup/patterns/structure/templates/tablerow.xml
index 82215a26..cffb48d5 100644
--- a/mockup/patterns/structure/templates/tablerow.xml
+++ b/mockup/patterns/structure/templates/tablerow.xml
@@ -28,7 +28,7 @@
<% } %>
</div>
<% if(attributes["getIcon"] && thumb_scale) { %>
- <img class="image-<%- thumb_scale %> pull-right" src="<%- getURL %>/@@images/image/<%- thumb_scale %>">
+ <img class="thumb-<%- thumb_scale %> pull-right" src="<%- getURL %>/@@images/image/<%- thumb_scale %>">
<% } %>
</td>

diff --git a/mockup/tests/pattern-structure-test.js b/mockup/tests/pattern-structure-test.js
index e018c652..dcf2b148 100644
--- a/mockup/tests/pattern-structure-test.js
+++ b/mockup/tests/pattern-structure-test.js
@@ -628,7 +628,7 @@ define([
var el = row.render().el;

expect($('.title img', el).length).to.equal(1);
- expect($('.title img', el).attr('class')).to.have.string('image-tile');
+ expect($('.title img', el).attr('class')).to.have.string('thumb-tile');
});

it('should display no icon for contents without images', function() {
- Deprecating getIcon() in @@plone_layout
see https://github.com/plone/Products.CMFPlone/issues/1734
[fgrcon]
diff --git a/plone/app/layout/viewlets/document_relateditems.pt b/plone/app/layout/viewlets/document_relateditems.pt
index 2e5dc5f..f5ed395 100644
--- a/plone/app/layout/viewlets/document_relateditems.pt
+++ b/plone/app/layout/viewlets/document_relateditems.pt
@@ -22,7 +22,7 @@
item_has_image python:item.getIcon"
tal:attributes="title item_type">
<a tal:attributes="href item_url">
- <img class="image-icon"
+ <img class="thumb-icon"
tal:define="getIcon python:item.getURL() +'/@@images/image/icon'"
tal:condition="item_has_image"
tal:attributes="src string:$getIcon">


Repository: mockup
Repository: plone.app.layout


Branch: refs/heads/master
Date: 2017-06-17T23:39:50+02:00
Date: 2017-06-17T23:39:47+02:00
Author: Johannes Raggam (thet) <[email protected]>
Commit: https://github.com/plone/mockup/commit/3c14abc439af6031ee01f084be4d111df79d1e41
Commit: https://github.com/plone/plone.app.layout/commit/6acbcaa9387dffde98d8aa90c64d8c2400f734e0

Merge pull request #779 from plone/fgrcon-fix-2077
Merge pull request #125 from plone/fgrcon-fix-2077

fixing https://github.com/plone/Products.CMFPlone/issues/2077

Files changed:
M CHANGES.rst
M mockup/patterns/structure/templates/tablerow.xml
M mockup/tests/pattern-structure-test.js
M plone/app/layout/viewlets/document_relateditems.pt

diff --git a/CHANGES.rst b/CHANGES.rst
index 9cb139ae..da9837d7 100644
index 4623a14..9f0156e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -50,6 +50,11 @@ New features:
@@ -32,6 +32,10 @@ New features:

Bug fixes:

+- fixed css-classes for thumb scales ...
+ https://github.com/plone/Products.CMFPlone/issues/2077
+ [fgrcon]
+
+
- modal: Fixed duplicate window.confirm on form unload.
Fixes `issue 777 <https://github.com/plone/mockup/issues/777>`_.
[seanupton]
diff --git a/mockup/patterns/structure/templates/tablerow.xml b/mockup/patterns/structure/templates/tablerow.xml
index 82215a26..cffb48d5 100644
--- a/mockup/patterns/structure/templates/tablerow.xml
+++ b/mockup/patterns/structure/templates/tablerow.xml
@@ -28,7 +28,7 @@
<% } %>
</div>
<% if(attributes["getIcon"] && thumb_scale) { %>
- <img class="image-<%- thumb_scale %> pull-right" src="<%- getURL %>/@@images/image/<%- thumb_scale %>">
+ <img class="thumb-<%- thumb_scale %> pull-right" src="<%- getURL %>/@@images/image/<%- thumb_scale %>">
<% } %>
</td>

diff --git a/mockup/tests/pattern-structure-test.js b/mockup/tests/pattern-structure-test.js
index e018c652..dcf2b148 100644
--- a/mockup/tests/pattern-structure-test.js
+++ b/mockup/tests/pattern-structure-test.js
@@ -628,7 +628,7 @@ define([
var el = row.render().el;

expect($('.title img', el).length).to.equal(1);
- expect($('.title img', el).attr('class')).to.have.string('image-tile');
+ expect($('.title img', el).attr('class')).to.have.string('thumb-tile');
});

it('should display no icon for contents without images', function() {
- Deprecating getIcon() in @@plone_layout
see https://github.com/plone/Products.CMFPlone/issues/1734
[fgrcon]
diff --git a/plone/app/layout/viewlets/document_relateditems.pt b/plone/app/layout/viewlets/document_relateditems.pt
index 2e5dc5f..f5ed395 100644
--- a/plone/app/layout/viewlets/document_relateditems.pt
+++ b/plone/app/layout/viewlets/document_relateditems.pt
@@ -22,7 +22,7 @@
item_has_image python:item.getIcon"
tal:attributes="title item_type">
<a tal:attributes="href item_url">
- <img class="image-icon"
+ <img class="thumb-icon"
tal:define="getIcon python:item.getURL() +'/@@images/image/icon'"
tal:condition="item_has_image"
tal:attributes="src string:$getIcon">


0 comments on commit c059bde

Please sign in to comment.