Bugfix: Filmdetails sehen ohne angemeldet sein

This commit is contained in:
2013-09-12 20:00:46 +02:00
parent e0a5a0def9
commit 7620121fca

View File

@@ -10,7 +10,7 @@
@if(!is_null($film->gesehen))
<div class="label label-success"><span class="glyphicon glyphicon-check"></span> Gesehen am {{ \Carbon\Carbon::parse($film->gesehen)->format('d.m.Y') }}</div>
@else
<div class="label label-danger" <?php if(Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
<div class="label label-danger" <?php if(!is_null(Auth::user()) && Auth::user()->admin) { echo "id='gesehen'"; } ?> style="cursor: pointer;"><span class="glyphicon glyphicon-unchecked"></span> Nicht gesehen</div>
@endif
</div>
<div class="col-md-9">
@@ -204,4 +204,4 @@
@section('title')
{{ $film->name }} ~
@stop
@stop