mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
7
app/breadcrumbs.php
Normal file
7
app/breadcrumbs.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Back home.
|
||||||
|
*/
|
||||||
|
Breadcrumbs::register('home', function($breadcrumbs) {
|
||||||
|
$breadcrumbs->push('Home', route('index'));
|
||||||
|
});
|
@@ -37,8 +37,8 @@ return [
|
|||||||
'Illuminate\Validation\ValidationServiceProvider',
|
'Illuminate\Validation\ValidationServiceProvider',
|
||||||
'Illuminate\View\ViewServiceProvider',
|
'Illuminate\View\ViewServiceProvider',
|
||||||
'Illuminate\Workbench\WorkbenchServiceProvider',
|
'Illuminate\Workbench\WorkbenchServiceProvider',
|
||||||
# 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
|
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
|
||||||
# 'Barryvdh\Debugbar\ServiceProvider',
|
'Barryvdh\Debugbar\ServiceProvider',
|
||||||
'Firefly\Storage\StorageServiceProvider',
|
'Firefly\Storage\StorageServiceProvider',
|
||||||
'Firefly\Helper\HelperServiceProvider',
|
'Firefly\Helper\HelperServiceProvider',
|
||||||
'Firefly\Validation\ValidationServiceProvider',
|
'Firefly\Validation\ValidationServiceProvider',
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'view' => 'laravel-breadcrumbs::bootstrap3',
|
||||||
|
);
|
@@ -100,6 +100,6 @@ class HomeController extends BaseController
|
|||||||
|
|
||||||
// build the home screen:
|
// build the home screen:
|
||||||
return View::make('index')->with('count', $count)->with('transactions', $transactions)->with('title', 'Firefly')
|
return View::make('index')->with('count', $count)->with('transactions', $transactions)->with('title', 'Firefly')
|
||||||
->with('subTitle', 'What\'s playing?');
|
->with('subTitle', 'What\'s playing?')->with('mainTitleIcon','fa-fire');
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -71,6 +71,20 @@ App::down(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// forms:
|
||||||
|
\Form::macro('ffText', function ($name, $value = null, array $options = []) {
|
||||||
|
return \Firefly\Form\Form::ffText($name, $value, $options);
|
||||||
|
});
|
||||||
|
\Form::macro('ffSelect', function ($name, array $list = [], $selected = null, array $options = []) {
|
||||||
|
return \Firefly\Form\Form::ffSelect($name, $list, $selected, $options);
|
||||||
|
});
|
||||||
|
\Form::macro('ffAmount', function ($name, $value = null, array $options = []) {
|
||||||
|
return \Firefly\Form\Form::ffAmount($name, $value, $options);
|
||||||
|
});
|
||||||
|
\Form::macro('ffDate', function ($name, $value = null, array $options = []) {
|
||||||
|
return \Firefly\Form\Form::ffDate($name, $value, $options);
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Require The Filters File
|
| Require The Filters File
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
@extends('layouts.default')
|
@extends('layouts.default')
|
||||||
@section('content')
|
@section('content')
|
||||||
|
{{ Breadcrumbs::render('home') }}
|
||||||
@if($count == 0)
|
@if($count == 0)
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
@@ -37,12 +37,11 @@ $app = new Illuminate\Foundation\Application;
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$env = $app->detectEnvironment(
|
$env = $app->detectEnvironment(array(
|
||||||
function () {
|
|
||||||
// Default to production if LARAVEL_ENV is not set
|
'local' => array('homestead', 'SMJD*'),
|
||||||
return getenv('LARAVEL_ENV') ? : 'production';
|
|
||||||
}
|
));
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -70,7 +69,7 @@ $app->bindInstallPaths(require __DIR__ . '/paths.php');
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$framework = $app['path.base'] .
|
$framework = $app['path.base'] .
|
||||||
'/vendor/laravel/framework/src';
|
'/vendor/laravel/framework/src';
|
||||||
|
|
||||||
require $framework . '/Illuminate/Foundation/start.php';
|
require $framework . '/Illuminate/Foundation/start.php';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user