Browse Source

Updates on suggest-page

Daniel 10 years ago
parent
commit
c17b699d1b
1 changed files with 7 additions and 9 deletions
  1. 7 9
      app/views/suggest.blade.php

+ 7 - 9
app/views/suggest.blade.php

@@ -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&uuml;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>&nbsp;{{ $vp }}, 
+			<span class="glyphicon glyphicon-thumbs-down"></span>&nbsp;{{ $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>