Skip to content

Commit

Permalink
Merge pull request #10147 from sbwhitt/pager-analytics
Browse files Browse the repository at this point in the history
Add analytics to pager navigation buttons
  • Loading branch information
jimchamp authored Dec 17, 2024
2 parents 4b27f57 + 45a80a9 commit 929e0ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openlibrary/macros/Pager.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
<div class="clearfix"></div>
<div class="pagination">
$if page != 1:
<a href="$changequery(page=None)" class="ChoosePage">&laquo;&nbsp;$_('First')</a>
<a href="$changequery(page=page-1)" class="ChoosePage">&lt;&nbsp;$_('Previous')</a>
<a href="$changequery(page=None)" class="ChoosePage" data-ol-link-track="Pager|First">&laquo;&nbsp;$_('First')</a>
<a href="$changequery(page=page-1)" class="ChoosePage" data-ol-link-track="Pager|Previous">&lt;&nbsp;$_('Previous')</a>
$for p in range(first_page_in_set, last_page_in_set+1):
$if p == page:
<span class="this">$p</span>
$else:
<a href="$changequery(page=p)" class="ChoosePage">$p</a>
<a href="$changequery(page=p)" class="ChoosePage" data-ol-link-track="Pager|Offset$(p - page)">$p</a>
$if last_page_in_set != pages:
$if last_page_in_set != pages-1:
<span class="ellipsis">...</span>
<a href="$changequery(page=pages)" class="ChoosePage">$pages</a>
<a href="$changequery(page=pages)" class="ChoosePage" data-ol-link-track="Pager|LastPage">$pages</a>
$if page < pages:
<a href="$changequery(page=page+1)" class="ChoosePage">$_('Next')&nbsp;&gt;</a>
<a href="$changequery(page=page+1)" class="ChoosePage" data-ol-link-track="Pager|Next">$_('Next')&nbsp;&gt;</a>
</div>

0 comments on commit 929e0ae

Please sign in to comment.