Negative Stimmen abgeschafft.

This commit is contained in:
Daniel Müllers
2014-11-25 17:52:39 +01:00
parent ab1334c0cf
commit 6099335b5e
5 changed files with 64 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
@extends('hello')
@section('content')
<div class="page-header"><h1>Vorschläge</h1></div>
<div class="page-header"><h1>{{$titel}}</h1></div>
{{ $filme->links() }}
@@ -27,18 +27,16 @@
$vp = $film->upvotes;
$np = $film->downvotes;
?>
<span class="glyphicon glyphicon-thumbs-up"></span>&nbsp;{{ $vp }},
<span class="glyphicon glyphicon-thumbs-down"></span>&nbsp;{{ $np }}
<span class="glyphicon glyphicon-sort-by-attributes"></span>&nbsp;{{ $vp + $np }}
</td>
<td>
@if(($vp - $np) > 0) <span class="label label-success">+{{$vp - $np}}</span>
@elseif(($vp - $np) < 0) <span class="label label-danger">{{$vp - $np}}</span>
@else <span class="label label-warning">{{$vp - $np}}</span>
@if(($vp) > 0) <span class="label label-default">+{{$vp}}</span>
@else <span class="label label-default">0</span>
@endif
@if($stimme == 1)
&nbsp;<span class="label label-success tooltip-enable" data-toggle="tooltip" title="Daf&uuml;r gestimmt."><span class="glyphicon glyphicon-thumbs-up"></span></span>
@elseif($stimme == 0)
&nbsp;<span class="label label-danger tooltip-enable" data-toggle="tooltip" title="Dagegen gestimmt."><span class="glyphicon glyphicon-thumbs-down"></span></span>
&nbsp;<span class="label label-warning tooltip-enable" data-toggle="tooltip" title="Nicht daf&uuml;r gestimmt."><span class="glyphicon glyphicon-hand-right"></span></span>
@endif
</td>
<td>{{ \Carbon\Carbon::parse($film->vorgeschlagen)->format('d.m.Y')}}</td>
@@ -52,7 +50,7 @@
@stop
@section('title')
Vorschläge ~
{{$titel}} ~
@stop
@section('script')