Skip to content

Commit

Permalink
Switches deprecated listingBar CSS class reference to pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
davilima6 committed Jan 13, 2016
1 parent 1e26629 commit 61a0ffc
Show file tree
Hide file tree
Showing 2 changed files with 42 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>

0 comments on commit 61a0ffc

Please sign in to comment.