Skip to content

Commit

Permalink
Merge pull request firefly-iii#3323 from lguima/feature/page-icons-up…
Browse files Browse the repository at this point in the history
…date

Update the pages and blocks icons
  • Loading branch information
JC5 authored May 2, 2020
2 parents a8709a4 + c1be987 commit d9132bb
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 32 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/AvailableBudgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->abRepository = app(AvailableBudgetRepositoryInterface::class);
$this->currencyRepos = app(CurrencyRepositoryInterface::class);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/BudgetLimitController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->opsRepository = app(OperationsRepositoryInterface::class);
$this->blRepository = app(BudgetLimitRepositoryInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/CreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->attachments = app(AttachmentHelperInterface::class);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/DeleteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);

return $next($request);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/EditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->attachments = app(AttachmentHelperInterface::class);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->opsRepository = app(OperationsRepositoryInterface::class);
$this->abRepository = app(AvailableBudgetRepositoryInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Budget/ShowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->journalRepos = app(JournalRepositoryInterface::class);
$this->repository = app(BudgetRepositoryInterface::class);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Category/CreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Category/DeleteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Category/EditController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Category/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Category/NoCategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Category/ShowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Json/BudgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'fa-tasks');
app('view')->share('mainTitleIcon', 'fa-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->opsRepository = app(OperationsRepositoryInterface::class);
$this->abRepository = app(AvailableBudgetRepositoryInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/PiggyBankController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.piggyBanks'));
app('view')->share('mainTitleIcon', 'fa-sort-amount-asc');
app('view')->share('mainTitleIcon', 'fa-bullseye');

$this->attachments = app(AttachmentHelperInterface::class);
$this->piggyRepos = app(PiggyBankRepositoryInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.reports'));
app('view')->share('mainTitleIcon', 'fa-line-chart');
app('view')->share('mainTitleIcon', 'fa-bar-chart');
app('view')->share('subTitleIcon', 'fa-calendar');
$this->helper = app(ReportHelperInterface::class);
$this->repository = app(BudgetRepositoryInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct()
$this->middleware(
function ($request, $next) {
app('view')->share('title', (string) trans('firefly.tags'));
app('view')->share('mainTitleIcon', 'fa-tags');
app('view')->share('mainTitleIcon', 'fa-tag');

$this->attachments = app(AttachmentHelperInterface::class);
$this->repository = app(TagRepositoryInterface::class);
Expand Down
4 changes: 2 additions & 2 deletions resources/views/v1/accounts/reconcile/transactions.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<th class="hidden-xs hidden-sm">{{ trans('list.date') }}</th>
<th class="hidden-xs hidden-sm hidden-md">{{ trans('list.from') }}</th>
<th class="hidden-xs hidden-sm hidden-md">{{ trans('list.to') }}</th>
<th class="hidden-xs"><i class="fa fa-tasks fa-fw" title="{{ trans('list.budget') }}"></i></th>
<th class="hidden-xs"><i class="fa fa-bar-chart fa-fw" title="{{ trans('list.category') }}"></i></th>
<th class="hidden-xs"><i class="fa fa-pie-chart fa-fw" title="{{ trans('list.budget') }}"></i></th>
<th class="hidden-xs"><i class="fa fa-bookmark fa-fw" title="{{ trans('list.category') }}"></i></th>
</tr>
</thead>
<tbody>
Expand Down
12 changes: 8 additions & 4 deletions resources/views/v1/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
<canvas id="budgets-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
</div>
<div class="box-footer">
<a href="{{ route('budgets.index') }}" class="btn btn-default button-sm"><i
class="fa fa-tasks"></i> {{ 'go_to_budgets'|_ }}</a>
<a href="{{ route('budgets.index') }}" class="btn btn-default button-sm">
<i class="fa fa-pie-chart"></i>
<span>{{ 'go_to_budgets'|_ }}</span>
</a>
</div>
</div>
{# CATEGORIES #}
Expand All @@ -44,8 +46,10 @@
<canvas id="categories-chart" style="width:100%;height:400px;" height="400" width="100%"></canvas>
</div>
<div class="box-footer">
<a href="{{ route('categories.index') }}" class="btn btn-default button-sm"><i
class="fa fa-bar-chart"></i> {{ 'go_to_categories'|_ }}</a>
<a href="{{ route('categories.index') }}" class="btn btn-default button-sm">
<i class="fa fa-bookmark"></i>
<span>{{ 'go_to_categories'|_ }}</span>
</a>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/v1/partials/control-bar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

<li>
<a href="{{ route('budgets.create') }}">
<i class="menu-icon fa fa-tasks bg-red"></i>
<i class="menu-icon fa fa-pie-chart bg-red"></i>

<div class="menu-info">
<h4 class="control-sidebar-subheading">{{ 'new_budget'|_ }}</h4>
Expand All @@ -79,7 +79,7 @@

<li>
<a href="{{ route('categories.create') }}">
<i class="menu-icon fa fa-bar-chart bg-red"></i>
<i class="menu-icon fa fa-bookmark bg-red"></i>

<div class="menu-info">
<h4 class="control-sidebar-subheading">{{ 'new_category'|_ }}</h4>
Expand All @@ -89,7 +89,7 @@

<li>
<a href="{{ route('piggy-banks.create') }}">
<i class="menu-icon fa fa-sort-amount-asc bg-teal"></i>
<i class="menu-icon fa fa-bullseye bg-teal"></i>

<div class="menu-info">
<h4 class="control-sidebar-subheading">{{ 'new_piggy_bank'|_ }}</h4>
Expand Down
9 changes: 7 additions & 2 deletions resources/views/v1/popup/list/journals.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@
{% if not hideDestination %}
<th class="hidden-xs">{{ trans('list.to') }}</th>
{% endif %}

{# Hide budgets? #}
{% if not hideBudget %}
<th class="hidden-xs"><i class="fa fa-tasks fa-fw" title="{{ trans('list.budget') }}"></i></th>
<th class="hidden-xs">
<i class="fa fa-pie-chart fa-fw" title="{{ trans('list.budget') }}"></i>
</th>
{% endif %}

{# Hide categories? #}
{% if not hideCategory %}
<th class="hidden-xs"><i class="fa fa-bar-chart fa-fw" title="{{ trans('list.category') }}"></i></th>
<th class="hidden-xs">
<i class="fa fa-bookmark fa-fw" title="{{ trans('list.category') }}"></i>
</th>
{% endif %}
</tr>
</thead>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/v1/reports/partials/journals-audit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<th class="hide-from">{{ trans('list.from') }}</th>
<th class="hide-to">{{ trans('list.to') }}</th>

<th class="hide-budget"><i class="fa fa-tasks fa-fw" title="{{ trans('list.budget') }}"></i></th>
<th class="hide-category"><i class="fa fa-bar-chart fa-fw" title="{{ trans('list.category') }}"></i></th>
<th class="hide-budget"><i class="fa fa-pie-chart fa-fw" title="{{ trans('list.budget') }}"></i></th>
<th class="hide-category"><i class="fa fa-bookmark fa-fw" title="{{ trans('list.category') }}"></i></th>
<th class="hide-bill">{{ trans('list.bill') }}</th>

{# more optional fields (2x) #}
Expand Down

0 comments on commit d9132bb

Please sign in to comment.