use BookStack\Entities\Tools\PageContent;
use BookStack\Entities\Tools\PageEditActivity;
use BookStack\Entities\Models\Page;
use BookStack\Entities\Tools\PageContent;
use BookStack\Entities\Tools\PageEditActivity;
use BookStack\Entities\Models\Page;
View::incrementFor($page);
$this->setPageTitle($page->getShortName());
return view('pages.show', [
View::incrementFor($page);
$this->setPageTitle($page->getShortName());
return view('pages.show', [
'current' => $page,
'sidebarTree' => $sidebarTree,
'commentsEnabled' => $commentsEnabled,
'current' => $page,
'sidebarTree' => $sidebarTree,
'commentsEnabled' => $commentsEnabled,
{
$page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
$this->checkOwnablePermission('page-delete', $page);
{
$page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
$this->checkOwnablePermission('page-delete', $page);
{
$page = $this->pageRepo->getById($pageId);
$this->checkOwnablePermission('page-update', $page);
{
$page = $this->pageRepo->getById($pageId);
$this->checkOwnablePermission('page-update', $page);
try {
$parent = $this->pageRepo->move($page, $entitySelection);
} catch (Exception $exception) {
try {
$parent = $this->pageRepo->move($page, $entitySelection);
} catch (Exception $exception) {
try {
$pageCopy = $this->pageRepo->copy($page, $entitySelection, $newName);
} catch (Exception $exception) {
try {
$pageCopy = $this->pageRepo->copy($page, $entitySelection, $newName);
} catch (Exception $exception) {
$page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
$this->checkOwnablePermission('restrictions-manage', $page);
return view('pages.permissions', [
$page = $this->pageRepo->getBySlug($bookSlug, $pageSlug);
$this->checkOwnablePermission('restrictions-manage', $page);
return view('pages.permissions', [