diff options
| author | Camil Staps | 2016-09-06 00:44:27 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-09-06 00:44:27 +0200 | 
| commit | 276ac8d8b32c1242863f597bcee411995cf36a05 (patch) | |
| tree | 16f01239e15f05d1fa7540b1f6978b96fb7646e1 /resources/views/user/top.blade.php | |
| parent | Several minor fixes (diff) | |
Top users, more condense contribution page
Diffstat (limited to 'resources/views/user/top.blade.php')
| -rw-r--r-- | resources/views/user/top.blade.php | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/resources/views/user/top.blade.php b/resources/views/user/top.blade.php new file mode 100644 index 0000000..52973e6 --- /dev/null +++ b/resources/views/user/top.blade.php @@ -0,0 +1,28 @@ +<?php +use HebrewParseTrainer\User; +?> +<div class="panel panel-default"> +	<div class="panel-heading"> +		<h3 class="panel-title">Top users</h3> +	</div> +	<div class="panel-body"> +		<table class="table table-hover"> +			<thead> +				<tr> +					<th></th> +					<th>Name</th> +					<th>Points</th> +				</tr> +			</thead> +			<tbody> +			@foreach(User::orderBy('points', 'desc')->take(10)->get() as $user) +				<tr> +					<td><img src="https://gravatar.com/avatar/{{ md5(strtolower(trim($user->email))) }}?s=40"/></td> +					<td>{{{ $user->name }}}</td> +					<td>{{{ $user->points }}}</td> +				</tr> +			@endforeach +			</tbody> +		</table> +	</div> +</div> | 
