From 27c48b8fa930b33e5e15f0c8685e468e857ca9cd Mon Sep 17 00:00:00 2001 From: Yassine Doghri <yassine@doghri.fr> Date: Fri, 23 Apr 2021 10:41:20 +0000 Subject: [PATCH] feat(ux): remove admin dashboard and redirect directly to podcast list As there is currently no info on the dashboard, it is unnecessary for now --- app/Controllers/Admin/Home.php | 3 ++- app/Helpers/rss_helper.php | 5 +---- app/Views/_assets/icons/dashboard.svg | 0 app/Views/admin/_sidebar.php | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) mode change 100755 => 100644 app/Views/_assets/icons/dashboard.svg diff --git a/app/Controllers/Admin/Home.php b/app/Controllers/Admin/Home.php index a1db30a705..42e633dba7 100644 --- a/app/Controllers/Admin/Home.php +++ b/app/Controllers/Admin/Home.php @@ -12,6 +12,7 @@ class Home extends BaseController { public function index() { - return view('admin/dashboard'); + session()->keepFlashdata('message'); + return redirect()->route('podcast-list'); } } diff --git a/app/Helpers/rss_helper.php b/app/Helpers/rss_helper.php index 72e5a1542b..112b4648a8 100644 --- a/app/Helpers/rss_helper.php +++ b/app/Helpers/rss_helper.php @@ -54,10 +54,7 @@ function get_rss_feed($podcast, $serviceSlug = '') 'lastBuildDate', (new Time('now'))->format(DATE_RFC1123), ); - $channel->addChild( - 'generator', - 'Castopod 0.0.0-development - https://castopod.org/', - ); + $channel->addChild('generator', 'Castopod Host - https://castopod.org/'); $channel->addChild('docs', 'https://cyber.harvard.edu/rss/rss.html'); $channel->addChild('title', $podcast->title); diff --git a/app/Views/_assets/icons/dashboard.svg b/app/Views/_assets/icons/dashboard.svg old mode 100755 new mode 100644 diff --git a/app/Views/admin/_sidebar.php b/app/Views/admin/_sidebar.php index 59320ba18a..65785a6771 100644 --- a/app/Views/admin/_sidebar.php +++ b/app/Views/admin/_sidebar.php @@ -1,6 +1,5 @@ <?php $navigation = [ - 'dashboard' => ['icon' => 'dashboard', 'items' => ['admin']], 'podcasts' => [ 'icon' => 'mic', 'items' => ['podcast-list', 'podcast-create', 'podcast-import'], -- GitLab