BookStack/resources/views
Dan Brown 802f69cf35
Some checks failed
analyse-php / build (push) Has been cancelled
lint-php / build (push) Has been cancelled
test-migrations / build (8.2) (push) Has been cancelled
test-migrations / build (8.3) (push) Has been cancelled
test-migrations / build (8.4) (push) Has been cancelled
test-php / build (8.2) (push) Has been cancelled
test-php / build (8.3) (push) Has been cancelled
test-php / build (8.4) (push) Has been cancelled
Comments: Fixed missing comment timestamps
Due to deleted code during Laravel 11 upgrade.
Added test to cover.
Closes #5555
2025-03-30 17:36:48 +01:00
..
api-docs
attachments Attachments: Hid edit/delete controls where lacking permission 2024-12-11 20:38:30 +00:00
auth
books Merge pull request #5470 from Silverlan/patch-1 2025-02-12 18:14:28 +00:00
chapters
comments Comments: Fixed missing comment timestamps 2025-03-30 17:36:48 +01:00
common
entities ZIP Imports: Added parent selector for page/chapter imports 2024-11-04 16:21:22 +00:00
errors
exports ZIP Imports: Updated import form to show loading indicator 2024-11-22 21:36:42 +00:00
form ZIP Imports: Added parent selector for page/chapter imports 2024-11-04 16:21:22 +00:00
help Lexical: Added about button/view 2024-12-17 22:40:28 +00:00
home
layouts
mfa
misc
pages Revisions: Hid changes link for oldest revision 2025-03-16 12:00:54 +00:00
search
settings Sorting: Renamed sort set to sort rule 2025-02-11 14:36:25 +00:00
shelves Sorting: Added sort set form manager UI JS 2025-02-04 15:14:22 +00:00
tags
users Users: Hid lanuage preference for guest user 2024-12-13 15:19:28 +00:00
vendor
readme.md

BookStack Views

All views within this folder are Laravel blade views.

Overriding

Views can be overridden on a per-file basis via the visual theme system. More information on this can be found within the dev/docs/visual-theme-system.md file within this project.

Convention

Views are broken down into rough domain areas. These aren't too strict although many of the folders here will often match up to a HTTP controller.

Within each folder views will be structured like so:

- folder/
    - page-a.blade.php
    - page-b.blade.php
    - parts/
        - partial-a.blade.php
        - partial-b.blade.php
    - subdomain/
        - subdomain-page-a.blade.php
        - subdomain-page-b.blade.php
        - parts/
            - subdomain-partial-a.blade.php
            - subdomain-partial-b.blade.php

If a folder contains no pages at all (For example: attachments, form) and only partials, then the partials can be within the top-level folder instead of pages to prevent unneeded nesting.

If a partial depends on another partial within the same directory, the naming of the child partials should be an extension of the parent. For example:

- tag-manager.blade.php
- tag-manager-list.blade.php
- tag-manager-input.blade.php