Skip to content

Commit

Permalink
Changed section.portletContent into div.
Browse files Browse the repository at this point in the history
These have no heading, and a heading makes no sense here anyway, so they should be divs.
  • Loading branch information
mauritsvanrees committed Mar 2, 2016
1 parent c4ccd99 commit fcb77d6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions plone/app/portlets/portlets/language.pt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<header class="portletHeader">
<span class="tile" i18n:translate="box_languages">Languages</span>
</header>
<section class="portletContent">
<div class="portletContent">
<ul tal:define="showFlags view/showFlags">
<li class="portletItem" tal:repeat="lang view/languages">
<span tal:define="code lang/code;
Expand All @@ -30,7 +30,7 @@
</span>
</li>
</ul>
</section>
</div>

</section>
</tal:block>
4 changes: 2 additions & 2 deletions plone/app/portlets/portlets/login.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
tal:attributes="href view/login_form"
i18n:translate="box_sign_in">Log in</a>
</header>
<section class="portletContent">
<div class="portletContent">
<div
tal:define="ac_name view/login_name;
ac_password view/login_password">
Expand Down Expand Up @@ -86,7 +86,7 @@
</div>
</form>
</div>
</section>
</div>
<footer class="portletFooter">
<div tal:condition="view/can_request_password">
<a href="mail_password_form"
Expand Down
10 changes: 5 additions & 5 deletions plone/app/portlets/portlets/news.pt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
tal:attributes="href all_news_link"
i18n:translate="box_news">News</a>
</header>
<section class="portletContent">
<div class="portletContent">
<ul>
<tal:newsitems tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
plone_layout context/@@plone_layout"
Expand All @@ -25,11 +25,11 @@
class="tile"
tal:attributes="href obj/getURL;
title obj/Description">
<img class="image-icon"
<img class="image-icon"
tal:define="getIcon python:obj.getURL()+'/@@images/image/icon'"
tal:condition="python: obj.getIcon"
tal:condition="python: obj.getIcon"
tal:attributes="href obj/getURL;
src string:$getIcon">
src string:$getIcon">
<span tal:replace="obj/pretty_title_or_id">
Plone 5.1 announced!
</span>
Expand All @@ -40,7 +40,7 @@
</li>
</tal:newsitems>
</ul>
</section>
</div>
<footer class="portletFooter"
tal:condition="view/all_news_link">
<a href=""
Expand Down
14 changes: 7 additions & 7 deletions plone/app/portlets/portlets/recent.pt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
i18n:translate=""
tal:content="view/title" />
</header>
<section class="portletContent"
<div class="portletContent"
tal:condition="view/recent_items">
<ul>
<tal:items tal:define="plone_view context/@@plone;
Expand All @@ -31,11 +31,11 @@
class string:$item_wf_state_class tile $item_class">
<img class="image-icon"
tal:define="getIcon python:obj.getURL()+'/@@images/image/icon'"
tal:condition="python: obj.getIcon"
tal:condition="python: obj.getIcon"
tal:attributes="href obj/getURL;
src string:$getIcon">
src string:$getIcon">
<span tal:content="obj/pretty_title_or_id">
Title
Title
</span>

</a>
Expand All @@ -45,12 +45,12 @@
</li>
</tal:items>
</ul>
</section>
</div>

<section class="portletContent"
<div class="portletContent"
tal:condition="not: view/recent_items">
<p i18n:translate="box_recent_no_items">No items changed yet.</p>
</section>
</div>

<footer class="portletFooter">
<a href="#"
Expand Down
8 changes: 4 additions & 4 deletions plone/app/portlets/portlets/review.pt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
i18n:translate=""
tal:content="view/title" />
</header>
<section class="portletContent">
<div class="portletContent">
<ul>
<tal:items tal:repeat="o view/review_items">
<li class="portletItem"
Expand All @@ -29,14 +29,14 @@
class string:$review_state_class tile $item_class">
<img class="image-icon"
tal:define="getIcon string:${o/path}/@@images/image/icon"
tal:condition="o/hasImage"
tal:condition="o/hasImage"
tal:attributes="href string:${o/path}/view;
src string:$getIcon">
<span tal:replace="o/title">
Title
</span>
</a>

<span class="portletItemDetails">
<span tal:replace="o/creator">Jim Smith</span> &mdash;
<time tal:replace="o/mod_date"> May 5</time>
Expand All @@ -45,7 +45,7 @@
</li>
</tal:items>
</ul>
</section>
</div>

<footer class="portletFooter"
tal:define="full_review_link view/full_review_link"
Expand Down
4 changes: 2 additions & 2 deletions plone/app/portlets/portlets/rss.pt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Tags
</a>
</header>
<section class="portletContent" >
<div class="portletContent" >
<ul tal:condition="view/feedAvailable">
<tal:rss
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime"
Expand All @@ -38,7 +38,7 @@
</li>
</tal:rss>
</ul>
</section>
</div>
<footer class="portletFooter" tal:condition="view/feedAvailable">
<a href=""
tal:condition="view/siteurl"
Expand Down
4 changes: 2 additions & 2 deletions plone/app/portlets/portlets/search.pt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</a>
</header>

<section class="portletContent">
<div class="portletContent">
<form id="searchform" action="search"
tal:define="livesearch view/enable_livesearch;"
tal:attributes="action view/search_action;
Expand Down Expand Up @@ -45,7 +45,7 @@
</div>
</div>
</form>
</section>
</div>

<footer class="portletFooter">
<a href="#"
Expand Down

0 comments on commit fcb77d6

Please sign in to comment.