Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from smety/master
Browse files Browse the repository at this point in the history
- Replace empty link to span
  • Loading branch information
akadlec authored Jul 12, 2017
2 parents a4fa1ec + 074a322 commit 3e5d51f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/IPub/VisualPaginator/Components/template/bootstrap.latte
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{if $paginator->pageCount > 1}
<ul class="pagination">
{if $paginator->isFirst()}
<li class="disabled"><a>« Previous</a></li>
<li class="disabled"><span>« Previous</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page - 1}" rel="prev" n:class="$useAjax ? ajax">« Previous</a></li>
{/if}

{foreach $steps as $step}
{if $step == $paginator->page}
<li class="active"><a href="#">{$step}</a></li>
<li class="active"><span>{$step}</span></li>
{else}
<li><a href="{link $handle, 'page' => $step}" n:class="$useAjax ? ajax">{$step}</a></li>
{/if}
{if $iterator->nextValue > $step + 1}<li class="disabled"><a>…</a></li>{/if}
{if $iterator->nextValue > $step + 1}<li class="disabled"><span>…</span></li>{/if}
{/foreach}

{if $paginator->isLast()}
<li class="disabled"><a>Next »</a></li>
<li class="disabled"><span>Next »</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page + 1}" rel="next" n:class="$useAjax ? ajax">Next »</a></li>
{/if}
Expand Down
8 changes: 4 additions & 4 deletions src/IPub/VisualPaginator/Components/template/default.latte
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
<div class="pagination">
<ul>
{if $paginator->isFirst()}
<li><a>«</a></li>
<li><span>«</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page - 1}" n:class="$useAjax ? ajax">«</a></li>
{/if}

{foreach $steps as $step}
{if $step == $paginator->page}
<li class="active"><a>{$step}</a></li>
<li class="active"><span>{$step}</span></li>
{else}
<li><a href="{link $handle, 'page' => $step}" n:class="$useAjax ? ajax">{$step}</a></li>
{/if}
{if $iterator->nextValue > $step + 1}<li class="disabled"><a>…</a></li>{/if}
{if $iterator->nextValue > $step + 1}<li class="disabled"><span>…</span></li>{/if}
{/foreach}

{if $paginator->isLast()}
<li><a>»</a></li>
<li><span>»</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page + 1}" n:class="$useAjax ? ajax">»</a></li>
{/if}
Expand Down
10 changes: 5 additions & 5 deletions src/IPub/VisualPaginator/Components/template/foundation.latte
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@
<div class="pagination-centered">
<ul class="pagination">
{if $paginator->isFirst()}
<li class="arrow unavailable"><a href="">&laquo;</a></li>
<li class="arrow unavailable"><span>&laquo;</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page - 1}" n:class="$useAjax ? ajax,arrow">&laquo;</a></li>
{/if}

{foreach $steps as $step}
{if $step == $paginator->page}
<li class="current"><a>{$step}</a></li>
<li class="current"><span>{$step}</span></li>
{else}
<li><a href="{link $handle, 'page' => $step}" n:class="$useAjax ? ajax">{$step}</a></li>
{/if}
{if $iterator->nextValue > $step + 1}<li class="unavailable"><a href="">&hellip;</a></li>{/if}
{if $iterator->nextValue > $step + 1}<li class="unavailable"><span>&hellip;</span></li>{/if}
{/foreach}

{if $paginator->isLast()}

<li class="arrow unavailable"><a href="">&raquo;</a></li>
<li class="arrow unavailable"><span>&raquo;</span></li>
{else}
<li><a href="{link $handle, 'page' => $paginator->page + 1}" n:class="$useAjax ? ajax,arrow">&raquo;</a></li>
{/if}
</ul>
</div>
{/if}
{/if}

0 comments on commit 3e5d51f

Please sign in to comment.