diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-11-07 21:45:14 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-11-07 21:45:14 +0300 |
commit | ae28cc9b2d79568ae069e3f25ed29791986791d0 (patch) | |
tree | 64142d5c99b2b0c392bc8e22a4ea536fd5c9f816 /lib | |
parent | 9c94a3e10fb3345ed57df27f44d51dde2f7ff733 (diff) |
Added navigation, albums, init tags
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 4 | ||||
-rw-r--r-- | lib/Controller/PageController.php | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 52139b4d..97ab98b4 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -28,9 +28,9 @@ use OCP\AppFramework\App; class Application extends App { - const appID = 'photos'; + const APP_ID = 'photos'; public function __construct() { - parent::__construct(self::appID); + parent::__construct(self::APP_ID); } } diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 7f9538a6..8529441e 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -30,6 +30,7 @@ use OCP\AppFramework\Controller; use OCP\AppFramework\Http\TemplateResponse; use OCP\EventDispatcher\IEventDispatcher; use OCP\IRequest; +use OCP\Util; class PageController extends Controller { @@ -58,6 +59,10 @@ class PageController extends Controller { $this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar()); $this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer()); + + Util::addScript('photos', 'photos'); + Util::addStyle('photos', 'icons'); + $response = new TemplateResponse($this->appName, 'main'); return $response; } |