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

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

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

View File

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