1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Reorgranised blade view files to form a convention

- Primarily moved and re-organised view files.
- Included readme within views to document the convention.
- Fixed some issues with page field select list in previous commit.
- Tweaked some route names while going through.
- Split some views out further.

Closes #2805
This commit is contained in:
Dan Brown
2021-08-22 13:15:58 +01:00
parent 2036618fbd
commit a61c9c5e98
192 changed files with 647 additions and 605 deletions

View File

@ -54,7 +54,7 @@ class SearchController extends Controller
$term = $request->get('term', '');
$results = $this->searchRunner->searchBook($bookId, $term);
return view('partials.entity-list', ['entities' => $results]);
return view('entities.list', ['entities' => $results]);
}
/**
@ -65,7 +65,7 @@ class SearchController extends Controller
$term = $request->get('term', '');
$results = $this->searchRunner->searchChapter($chapterId, $term);
return view('partials.entity-list', ['entities' => $results]);
return view('entities.list', ['entities' => $results]);
}
/**
@ -86,7 +86,7 @@ class SearchController extends Controller
$entities = (new Popular())->run(20, 0, $entityTypes, $permission);
}
return view('search.entity-ajax-list', ['entities' => $entities]);
return view('search.parts.entity-ajax-list', ['entities' => $entities]);
}
/**
@ -99,6 +99,6 @@ class SearchController extends Controller
$entities = (new SiblingFetcher())->fetch($type, $id);
return view('partials.entity-list-basic', ['entities' => $entities, 'style' => 'compact']);
return view('entities.list-basic', ['entities' => $entities, 'style' => 'compact']);
}
}