Goondex/internal/web/static/css/gx/GX_Pagination.html
Stu Leak 16fb407a3c v0.1.0-dev4: Add web frontend with UI component library
- Implement full web interface with Go html/template server
- Add GX component library (buttons, dialogs, tables, forms, etc.)
- Create scene/performer/studio/movie detail and listing pages
- Add Adult Empire scraper for additional metadata sources
- Implement movie support with database schema
- Add import and sync services for data management
- Include comprehensive API and frontend documentation
- Add custom color scheme and responsive layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 10:47:30 -05:00

45 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="gx-pagination">
<!-- previous -->
<a class="gx-page-btn {{if .Prev}} {{else}}disabled{{end}}"
href="?page={{.Prev}}">
<span class="text-label">Prev</span>
</a>
<!-- first page -->
{{if gt .Current 3}}
<a class="gx-page-btn" href="?page=1">1</a>
{{end}}
<!-- left ellipsis -->
{{if gt .Current 4}}
<span class="gx-ellipsis"></span>
{{end}}
<!-- dynamic pages -->
{{range .Pages}}
<a class="gx-page-btn {{if eq . $.Current}}active{{end}}" href="?page={{.}}">
{{.}}
</a>
{{end}}
<!-- right ellipsis -->
{{if lt .Current (sub .Total 3)}}
<span class="gx-ellipsis"></span>
{{end}}
<!-- last page -->
{{if lt .Current (sub .Total 2)}}
<a class="gx-page-btn" href="?page={{.Total}}">{{.Total}}</a>
{{end}}
<!-- next -->
<a class="gx-page-btn {{if .Next}} {{else}}disabled{{end}}"
href="?page={{.Next}}">
<span class="text-label">Next</span>
</a>
</div>