close #11, close #10

This commit is contained in:
Sander Dorigo
2014-10-05 08:27:49 +02:00
parent b3209d3b4d
commit ec601efa6e
7 changed files with 36 additions and 10 deletions

7
app/breadcrumbs.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
/*
* Back home.
*/
Breadcrumbs::register('home', function($breadcrumbs) {
$breadcrumbs->push('Home', route('index'));
});

View File

@@ -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',

View File

@@ -0,0 +1,5 @@
<?php
return array(
'view' => 'laravel-breadcrumbs::bootstrap3',
);

View File

@@ -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');
} }
} }

View File

@@ -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

View 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">

View File

@@ -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';
} ));
);
/* /*