From 5c8892e12f92fd6c0ac865453cfe59a5c5c06fc0 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Tue, 31 Dec 2024 16:21:19 +0000 Subject: [PATCH] Add list of feeds --- src/Controllers/FeedController.php | 2 +- views/feed/index.twig.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 views/feed/index.twig.html 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