blog-rekahsoft-ca/templates/partials/pagination.haml

34 lines
1009 B
Plaintext

#pagination.container
.eight.columns.alpha
$if(firstPageUrl)$
$if(firstPageUrlVirtualPath)$
%a.firstPage(rel="address:$firstPageUrlVirtualPath$" href="$firstPageUrl$") First Page
$else$
%a.firstPage(href="$firstPageUrl$") First Page
$endif$
$endif$
$if(previousPageUrl)$
$if(previousPageUrlVirtualPath)$
%a.previousPage(rel="address:$previousPageUrlVirtualPath$" href="$previousPageUrl$") Previous Page
$else$
%a.previousPage(href="$previousPageUrl$") Previous Page
$endif$
$endif$
.eight.columns
$if(nextPageUrl)$
$if(nextPageUrlVirtualPath)$
%a.nextPage(rel="address:$nextPageUrlVirtualPath$" href="$nextPageUrl$") Next Page
$else$
%a.nextPage(href="$nextPageUrl$") Next Page
$endif$
$endif$
$if(lastPageUrl)$
$if(lastPageUrlVirtualPath)$
%a.lastPage(rel="address:$lastPageUrlVirtualPath$" href="$lastPageUrl$") Last Page
$else$
%a.lastPage(href="$lastPageUrl$") Last Page
$endif$
$endif$