Home view gets a better title.

This commit is contained in:
James Cole
2014-09-10 14:39:38 +02:00
parent 867074e7b2
commit d1b97da309
3 changed files with 7 additions and 11 deletions

View File

@@ -80,6 +80,7 @@ class HomeController extends BaseController
} }
// build the home screen: // build the home screen:
return View::make('index')->with('count', $count)->with('transactions', $transactions); return View::make('index')->with('count', $count)->with('transactions', $transactions)->with('title', 'Firefly')
->with('subTitle', 'What\'s playing?');
} }
} }

View File

@@ -1,14 +1,5 @@
@extends('layouts.default') @extends('layouts.default')
@section('content') @section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly
@if($count > 0)
<small>What's playing?</small>
@endif
</h1>
</div>
</div>
@if($count > 0) @if($count > 0)
@include('partials.date_nav') @include('partials.date_nav')
@endif @endif

View File

@@ -28,7 +28,11 @@
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<h1 class="page-header">Firefly <small>What's playing?</small></h1> <h1 class="page-header">{{$title or '(no title)'}}
@if(isset($subTitle))
<small>{{$subTitle}}</small>
@endif
</h1>
</div> </div>
<!-- /.col-lg-12 --> <!-- /.col-lg-12 -->
</div> </div>