Keep search pagination at current section
This commit is contained in:
parent
fcbf67aeb3
commit
f90b2bdcf6
@ -13,7 +13,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% for section in sections %}
|
||||
<div class="card mb-3">
|
||||
<div class="card mb-3" id="search-section-{{ section['key'] }}" style="scroll-margin-top: 96px;">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<span>{{ section['title'] }} ({{ section['total'] }})</span>
|
||||
<a href="{{ section['view_all_url'] }}" class="btn btn-sm btn-outline-secondary">Open {{ section['title'] }}</a>
|
||||
@ -57,10 +57,10 @@
|
||||
</span>
|
||||
<div class="d-flex gap-2">
|
||||
{% if section['has_prev'] %}
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ section['prev_url'] }}">Previous</a>
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ section['prev_url'] }}#search-section-{{ section['key'] }}">Previous</a>
|
||||
{% endif %}
|
||||
{% if section['has_next'] %}
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ section['next_url'] }}">Next</a>
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{{ section['next_url'] }}#search-section-{{ section['key'] }}">Next</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -21,6 +21,7 @@ This file documents all changes made to this project via Claude Code.
|
||||
- Changed Daily Jobs search result metadata to include expected run time, success indicator, and run count for the selected day
|
||||
- Changed Daily Jobs search result links to open the same Daily Jobs modal flow via `open_job_id` (instead of only navigating to the overview page)
|
||||
- Changed `docs/technical-notes-codex.md` to include search pagination query params, Daily Jobs modal-open search behavior, and latest successful test-build digest
|
||||
- Changed search pagination buttons to preserve scroll position by linking back to the active section anchor after page navigation
|
||||
|
||||
### Fixed
|
||||
- Fixed `/search` page crash (`TypeError: 'builtin_function_or_method' object is not iterable`) by replacing Jinja dict access from `section.items` to `section['items']` in `templates/main/search.html`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user