Skip to content

Commit

Permalink
Merge pull request #76 from plone/pagination_markup
Browse files Browse the repository at this point in the history
Switches deprecated listingBar CSS class reference to pagination
  • Loading branch information
agitator committed Jan 21, 2016
2 parents 1e26629 + c6b5146 commit de1c25c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 41 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Changelog

New:

- *add item here*
- Switches deprecated ``listingBar`` CSS class to ``pagination``.
[davilima6]

Fixes:

Expand Down
80 changes: 40 additions & 40 deletions plone/app/layout/nextprevious/nextprevious.pt
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,45 @@
tal:omit-tag=""
i18n:domain="plone">

<tal:block define="portal_url view/site_url;">

<div class="listingBar"
tal:define="next view/next;
previous view/previous"
tal:condition="python:previous is not None or next is not None">

<tal:previous condition="previous">
<a class="previous" href=""
title="Go to previous item"
i18n:attributes="title title_previous_item"
tal:attributes="href previous/url">
«
<span i18n:translate="label_previous_item"
tal:omit-tag="">
Previous:
<span i18n:name="itemtitle" tal:replace="previous/title" />
</span>
</a>
</tal:previous>


<a class="next" href=""
title="Go to next item"
i18n:attributes="title title_next_item"
tal:condition="next"
tal:attributes="href next/url">
<span i18n:translate="label_next_item"
tal:omit-tag="">
Next:
<span i18n:name="itemtitle" tal:replace="next/title" />
</span>
»
</a>

&nbsp;

</div>

</tal:block>
<tal:block define="portal_url view/site_url;">

<nav class="pagination"
tal:define="next view/next;
previous view/previous"
tal:condition="python:previous is not None or next is not None">

<ul>

<li class="previous" tal:condition="previous">
<a title="Go to previous item"
i18n:attributes="title title_previous_item"
tal:attributes="href previous/url">
«
<span i18n:translate="label_previous_item" tal:omit-tag="">
Previous:
<span i18n:name="itemtitle" tal:replace="previous/title" />
</span>
</a>
</li>

<li class="next" tal:condition="next">
<a title="Go to next item"
i18n:attributes="title title_next_item"
tal:attributes="href next/url">
<span i18n:translate="label_next_item" tal:omit-tag="">
Next:
<span i18n:name="itemtitle" tal:replace="next/title" />
</span>
»
</a>
</li>

&nbsp;

</ul>

</nav>

</tal:block>

</div>
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'plone.app.content',
'plone.app.portlets',
'plone.app.viewletmanager >=1.2',
'plone.batching >1.0.999',
'plone.i18n',
'plone.memoize',
'plone.portlets',
Expand Down

0 comments on commit de1c25c

Please sign in to comment.