瀏覽代碼

Updates on suggest-page

Daniel 10 年之前
父節點
當前提交
c17b699d1b
共有 1 個文件被更改,包括 7 次插入9 次删除
  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>