From d0b26dd01e13dfd3ef80eb7a03a576a4894daf0c Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 6 Sep 2016 00:57:34 +0200 Subject: Top contributors on train page --- resources/views/trainer.blade.php | 22 ++++++++++++++++++++++ resources/views/user/create.blade.php | 8 +++++--- resources/views/user/top.blade.php | 10 ++++++++-- 3 files changed, 35 insertions(+), 5 deletions(-) (limited to 'resources/views') diff --git a/resources/views/trainer.blade.php b/resources/views/trainer.blade.php index 861b28f..5085104 100644 --- a/resources/views/trainer.blade.php +++ b/resources/views/trainer.blade.php @@ -66,6 +66,28 @@ use HebrewParseTrainer\Tense; +
+ +
+
+ @include('user.top') +
+
+
+
+

Contribute!

+
+
+

If this app is useful to you, please consider contributing by adding more verbs to the database!

+ @if(!Auth::check()) + Sign up + or login + @endif +
+
+
+
+ diff --git a/resources/views/user/create.blade.php b/resources/views/user/create.blade.php index 818a20a..b823451 100644 --- a/resources/views/user/create.blade.php +++ b/resources/views/user/create.blade.php @@ -9,12 +9,14 @@
- - + + + You will not receive any automated email from us, but we like to have some way of contacting you available. Your email address will not be shared with third parties, and will not be visible to users of the website.
- + + Your name as shown on the site.
diff --git a/resources/views/user/top.blade.php b/resources/views/user/top.blade.php index 52973e6..4bc71c6 100644 --- a/resources/views/user/top.blade.php +++ b/resources/views/user/top.blade.php @@ -1,9 +1,10 @@ +@if(count(User::all()) > 0)
-

Top users

+

Top contributors

@@ -15,7 +16,7 @@ use HebrewParseTrainer\User; - @foreach(User::orderBy('points', 'desc')->take(10)->get() as $user) + @foreach(User::orderBy('points', 'desc')->take(3)->get() as $user) @@ -24,5 +25,10 @@ use HebrewParseTrainer\User; @endforeach
{{{ $user->name }}}
+ + @if(Auth::check()) +

You have {{ Auth::user()->points }} points.

+ @endif
+@endif -- cgit v1.2.3