Updates on suggest-page
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Titel</th>
|
||||
<th>Stimmen</th>
|
||||
<th colspan="2">Stimmen</th>
|
||||
<th>Vorgeschlagen am</th>
|
||||
<th>Vorgeschlagen von</th>
|
||||
</tr>
|
||||
@@ -20,14 +20,12 @@
|
||||
$vp = $film->upvotes;
|
||||
$np = $film->downvotes;
|
||||
?>
|
||||
<div class="progress tooltip-enable" data-toggle="tooltip" title="{{ $vp }}/{{ $np }}">
|
||||
<div class="progress-bar progress-bar-success" style="width: <?php if(($vp + $np) > 0) echo ($vp / ($vp + $np) * 100); else echo 0; ?>%">
|
||||
<span class="sr-only">{{$vp}} von {{$vp + $np}} (dafür)</span>
|
||||
</div>
|
||||
<div class="progress-bar progress-bar-danger" style="width: <?php if(($vp + $np) > 0) echo ($np / ($vp + $np) * 100); else echo 0; ?>%">
|
||||
<span class="sr-only">{{$np}} von {{$vp + $np}} (dagegen)</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span class="glyphicon glyphicon-thumbs-up"></span> {{ $vp }},
|
||||
<span class="glyphicon glyphicon-thumbs-down"></span> {{ $np }}
|
||||
</td>
|
||||
<td>
|
||||
<span class='label label-{{ ($vp - $np) > 0 ? "success'>+" . ($vp - $np) : "danger'>".($vp - $np) }}</span>
|
||||
</td>
|
||||
<td>{{ \Carbon\Carbon::parse($film->vorgeschlagen)->format('d.m.Y')}}</td>
|
||||
<td>{{ Film::find($film->id)->besitzer->name }}</td>
|
||||
|
Reference in New Issue
Block a user