Negative Stimmen abgeschafft.
This commit is contained in:
@@ -103,17 +103,25 @@
|
||||
@if($votes > 0)
|
||||
<h2>Abstimmung</h2>
|
||||
<p>Insgesamt haben <b>{{$votes}}</b> Personen abgestimmt. <b>{{$vposi}}</b> davon waren <i>dafür</i>. @if($uvote[0])
|
||||
Du hast <i>{{ $uvote[1] ? "dafür" : "dagegen"}}</i> gestimmt.
|
||||
Du hast <i>{{ $uvote[1] ? "dafür" : "nicht dafür"}}</i> gestimmt.
|
||||
@endif
|
||||
</p>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Dafür</dt>
|
||||
<dd>
|
||||
@foreach($pv as $v)
|
||||
<span class="badge">{{$v}}</span>
|
||||
@endforeach
|
||||
</dd>
|
||||
<dt>Nicht dafür</dt>
|
||||
<dd>
|
||||
@foreach($nv as $v)
|
||||
<span class="badge">{{$v}}</span>
|
||||
@endforeach
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-success tooltip-enable" style="width: {{ $vposi / $votes * 100}}%" data-toggle="tooltip" data-title="{{$pv}}">
|
||||
<span class="sr-only">{{$vposi}} von {{$votes}} (dafür)</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-danger tooltip-enable" style="width: {{ ($votes - $vposi) / $votes * 100}}%" data-toggle="tooltip" data-title="{{$nv}}">
|
||||
<span class="sr-only">{{ $votes - $vposi}} von {{ $votes }} (dagegen)</span>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if(is_null($film->gesehen) && !is_null(Auth::user()))
|
||||
<div class="container" style="text-align: center">
|
||||
@@ -121,8 +129,8 @@
|
||||
<a class="btn btn-lg btn-success <?php echo $uvote[0] && $uvote[1] ? "disabled" : ""; ?>" href="{{ url('vote', array('yes', Auth::user()->id, $film->id)) }}">
|
||||
<span class="glyphicon glyphicon-thumbs-up"></span> Dafür
|
||||
</a>
|
||||
<a class="btn btn-lg btn-danger <?php echo $uvote[0] && !$uvote[1] ? "disabled" : ""; ?>" href="{{ url('vote', array('no', Auth::user()->id, $film->id)) }}">
|
||||
<span class="glyphicon glyphicon-thumbs-down"></span> Dagegen
|
||||
<a class="btn btn-lg btn-warning <?php echo $uvote[0] && !$uvote[1] ? "disabled" : ""; ?>" href="{{ url('vote', array('no', Auth::user()->id, $film->id)) }}">
|
||||
<span class="glyphicon glyphicon-hand-right"></span> Nicht dafür
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user