mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +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\View\ViewServiceProvider',
|
||||
'Illuminate\Workbench\WorkbenchServiceProvider',
|
||||
# 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
|
||||
# 'Barryvdh\Debugbar\ServiceProvider',
|
||||
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
|
||||
'Barryvdh\Debugbar\ServiceProvider',
|
||||
'Firefly\Storage\StorageServiceProvider',
|
||||
'Firefly\Helper\HelperServiceProvider',
|
||||
'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:
|
||||
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
|
||||
|
@@ -1,5 +1,6 @@
|
||||
@extends('layouts.default')
|
||||
@section('content')
|
||||
{{ Breadcrumbs::render('home') }}
|
||||
@if($count == 0)
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||
|
@@ -37,12 +37,11 @@ $app = new Illuminate\Foundation\Application;
|
||||
|
|
||||
*/
|
||||
|
||||
$env = $app->detectEnvironment(
|
||||
function () {
|
||||
// Default to production if LARAVEL_ENV is not set
|
||||
return getenv('LARAVEL_ENV') ? : 'production';
|
||||
}
|
||||
);
|
||||
$env = $app->detectEnvironment(array(
|
||||
|
||||
'local' => array('homestead', 'SMJD*'),
|
||||
|
||||
));
|
||||
|
||||
|
||||
/*
|
||||
@@ -70,7 +69,7 @@ $app->bindInstallPaths(require __DIR__ . '/paths.php');
|
||||
*/
|
||||
|
||||
$framework = $app['path.base'] .
|
||||
'/vendor/laravel/framework/src';
|
||||
'/vendor/laravel/framework/src';
|
||||
|
||||
require $framework . '/Illuminate/Foundation/start.php';
|
||||
|
||||
|
Reference in New Issue
Block a user