diff --git a/src/Controllers/FeedController.php b/src/Controllers/FeedController.php index 94b5867..b0419d0 100644 --- a/src/Controllers/FeedController.php +++ b/src/Controllers/FeedController.php @@ -23,7 +23,7 @@ class FeedController { $this->logger->info("FeedController::get() called"); $feeds = $this->feedRepository->findBy([], ['title' => 'ASC']); - return $this->view->render($response, 'index.twig.html', ['feeds' => $feeds]); + return $this->view->render($response, 'feed/index.twig.html', ['feeds' => $feeds]); } public function get_feed(ServerRequestInterface $request, ResponseInterface $response) diff --git a/views/feed/index.twig.html b/views/feed/index.twig.html new file mode 100644 index 0000000..083a8bd --- /dev/null +++ b/views/feed/index.twig.html @@ -0,0 +1,16 @@ +

Your feeds

+ + + + + + + + {% for feed in feeds %} + + + + + {% endfor %} + +
TitleActions
{{ feed.title }}Link to feed