Nicer title display based on filter

This commit is contained in:
snipe
2013-11-22 06:47:51 -05:00
parent d5bbf38915
commit 9b5274fdcd
+29 -1
View File
@@ -2,6 +2,20 @@
{{-- Page title --}}
@section('title')
@if (Input::get('Pending') || Input::get('Undeployable') || Input::get('RTD') || Input::get('Deployed'))
@if (Input::get('Pending'))
Pending
@elseif (Input::get('RTD'))
Ready to Deploy
@elseif (Input::get('Undeployable'))
Un-deployable
@elseif (Input::get('Deployed'))
Deployed
@endif
@else
All
@endif
Assets ::
@parent
@stop
@@ -10,7 +24,21 @@ Assets ::
@section('content')
<div class="page-header">
<h3>
Assets
@if (Input::get('Pending') || Input::get('Undeployable') || Input::get('RTD') || Input::get('Deployed'))
@if (Input::get('Pending'))
Pending
@elseif (Input::get('RTD'))
Ready to Deploy
@elseif (Input::get('Undeployable'))
Un-deployable
@elseif (Input::get('Deployed'))
Deployed
@endif
@else
All
@endif
Assets
<div class="pull-right">
<a class="btn-flat white" href="{{ URL::to('admin?Deployed=true') }}">Deployed</a>