From c2733e2a8f7fc094199a4ca508b355744a09fbdd Mon Sep 17 00:00:00 2001 From: Lucas Guima Date: Fri, 1 May 2020 18:54:08 -0300 Subject: [PATCH] Update the Categories icon around the site --- app/Http/Controllers/Category/CreateController.php | 2 +- app/Http/Controllers/Category/DeleteController.php | 2 +- app/Http/Controllers/Category/EditController.php | 2 +- app/Http/Controllers/Category/IndexController.php | 2 +- app/Http/Controllers/Category/NoCategoryController.php | 2 +- app/Http/Controllers/Category/ShowController.php | 6 +++--- resources/views/v1/accounts/reconcile/transactions.twig | 2 +- resources/views/v1/index.twig | 6 ++++-- resources/views/v1/partials/control-bar.twig | 2 +- resources/views/v1/popup/list/journals.twig | 4 +++- resources/views/v1/reports/partials/journals-audit.twig | 2 +- 11 files changed, 18 insertions(+), 14 deletions(-) diff --git a/app/Http/Controllers/Category/CreateController.php b/app/Http/Controllers/Category/CreateController.php index 7e019fc43f4..fa19ddfcd17 100644 --- a/app/Http/Controllers/Category/CreateController.php +++ b/app/Http/Controllers/Category/CreateController.php @@ -57,7 +57,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->repository = app(CategoryRepositoryInterface::class); $this->attachments = app(AttachmentHelperInterface::class); diff --git a/app/Http/Controllers/Category/DeleteController.php b/app/Http/Controllers/Category/DeleteController.php index 6856243e140..59a2a19ecce 100644 --- a/app/Http/Controllers/Category/DeleteController.php +++ b/app/Http/Controllers/Category/DeleteController.php @@ -53,7 +53,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->repository = app(CategoryRepositoryInterface::class); return $next($request); diff --git a/app/Http/Controllers/Category/EditController.php b/app/Http/Controllers/Category/EditController.php index 632fa5a2eff..f5050899ceb 100644 --- a/app/Http/Controllers/Category/EditController.php +++ b/app/Http/Controllers/Category/EditController.php @@ -59,7 +59,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->repository = app(CategoryRepositoryInterface::class); $this->attachments = app(AttachmentHelperInterface::class); diff --git a/app/Http/Controllers/Category/IndexController.php b/app/Http/Controllers/Category/IndexController.php index 063d9e6cec0..633bf11cd0b 100644 --- a/app/Http/Controllers/Category/IndexController.php +++ b/app/Http/Controllers/Category/IndexController.php @@ -53,7 +53,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->repository = app(CategoryRepositoryInterface::class); return $next($request); diff --git a/app/Http/Controllers/Category/NoCategoryController.php b/app/Http/Controllers/Category/NoCategoryController.php index e4ff1bef557..8f7f5904f3e 100644 --- a/app/Http/Controllers/Category/NoCategoryController.php +++ b/app/Http/Controllers/Category/NoCategoryController.php @@ -59,7 +59,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->journalRepos = app(JournalRepositoryInterface::class); return $next($request); diff --git a/app/Http/Controllers/Category/ShowController.php b/app/Http/Controllers/Category/ShowController.php index 707fb39ffa2..aa64ccdf360 100644 --- a/app/Http/Controllers/Category/ShowController.php +++ b/app/Http/Controllers/Category/ShowController.php @@ -58,7 +58,7 @@ public function __construct() $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.categories')); - app('view')->share('mainTitleIcon', 'fa-bar-chart'); + app('view')->share('mainTitleIcon', 'fa-bookmark'); $this->repository = app(CategoryRepositoryInterface::class); return $next($request); @@ -84,7 +84,7 @@ public function show(Request $request, Category $category, Carbon $start = null, $start = $start ?? session('start', Carbon::now()->startOfMonth()); /** @var Carbon $end */ $end = $end ?? session('end', Carbon::now()->endOfMonth()); - $subTitleIcon = 'fa-bar-chart'; + $subTitleIcon = 'fa-bookmark'; $page = (int) $request->get('page'); $attachments = $this->repository->getAttachments($category); $pageSize = (int) app('preferences')->get('listPageSize', 50)->data; @@ -122,7 +122,7 @@ public function show(Request $request, Category $category, Carbon $start = null, public function showAll(Request $request, Category $category) { // default values: - $subTitleIcon = 'fa-bar-chart'; + $subTitleIcon = 'fa-bookmark'; $page = (int) $request->get('page'); $pageSize = (int) app('preferences')->get('listPageSize', 50)->data; $start = null; diff --git a/resources/views/v1/accounts/reconcile/transactions.twig b/resources/views/v1/accounts/reconcile/transactions.twig index baae6399bc4..73944ce2676 100644 --- a/resources/views/v1/accounts/reconcile/transactions.twig +++ b/resources/views/v1/accounts/reconcile/transactions.twig @@ -9,7 +9,7 @@ {{ trans('list.from') }} {{ trans('list.to') }} - + diff --git a/resources/views/v1/index.twig b/resources/views/v1/index.twig index 0209d3352f6..480041b5da6 100644 --- a/resources/views/v1/index.twig +++ b/resources/views/v1/index.twig @@ -46,8 +46,10 @@ diff --git a/resources/views/v1/partials/control-bar.twig b/resources/views/v1/partials/control-bar.twig index 395ffc403d5..ae6cca0c5cc 100644 --- a/resources/views/v1/partials/control-bar.twig +++ b/resources/views/v1/partials/control-bar.twig @@ -79,7 +79,7 @@
  • - +