]> BookStack Code Mirror - bookstack/commit
Reviewed and refactored next/previous navigation button implementation
authorDan Brown <redacted>
Sat, 29 May 2021 11:39:41 +0000 (12:39 +0100)
committerDan Brown <redacted>
Sat, 29 May 2021 11:39:41 +0000 (12:39 +0100)
commit0cfff6ab6f840e1e8892ff8d138880ae40f9de12
treee3d4609b882eeddfc28d66f55284ec8c68245e86
parent7ca66c5d5e7f691e27ac35b392770bb4d3a3b2fb
Reviewed and refactored next/previous navigation button implementation

- Updated styling to include item name.
- Extracted used text to translations.
- Updated the design to better suit the surrounding blocks.
- Removed newly added model/repo methods.
- Moved core logic out of controller and instead into a "NextPreviousContentLocator"
helper with re-uses the output from the book-tree generation.
- Also added the system to chapters.

For #2511
13 files changed:
app/Entities/Models/Page.php
app/Entities/Repos/PageRepo.php
app/Entities/Tools/NextPreviousContentLocator.php [new file with mode: 0644]
app/Http/Controllers/ChapterController.php
app/Http/Controllers/PageController.php
resources/lang/en/common.php
resources/sass/_blocks.scss
resources/sass/_layout.scss
resources/sass/_lists.scss
resources/sass/_text.scss
resources/views/chapters/show.blade.php
resources/views/pages/show.blade.php
resources/views/partials/entity-sibling-navigation.blade.php [new file with mode: 0644]