Bugfix "Gesehen"-Button

This commit is contained in:
daniel committed 2013-11-21 02:51:27 +01:00
1 parent 7bc24be788
commit a66ad460e8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
<div class="panel-body">
<img src="{{$nimage}}" class="pull-left thumbnail" style="max-height: 100px; margin-right: 15px;">
<h4>{{is_object($nextfilm) ? $nextfilm->name : "Steht nicht fest"}}</h4>
@if(is_object($nextfilm)) <a href='{{ url('mark-read/' . $nextfilm->id) }}' class='btn btn-success btn-xs'>Gesehen</a>
@if(is_object($nextfilm) && !is_null(Auth::user()) && Auth::user()->admin) <a href='{{ url('mark-read/' . $nextfilm->id) }}' class='btn btn-success btn-xs'>Gesehen</a>
@endif
</div>