Skip to content

Commit

Permalink
Add readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
msalom28 committed Apr 25, 2015
1 parent 12fbaeb commit 3c3b1a7
Show file tree
Hide file tree
Showing 14 changed files with 77 additions and 32 deletions.
Binary file modified .sass-cache/d9b885ff6b56267e4f2b8573fca9e47b444b1d39/main.scssc
Binary file not shown.
16 changes: 15 additions & 1 deletion app/Http/Controllers/RegistrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Commands\RegisterUserCommand;
use App;
use Carbon\Carbon;
use App\User;

use Illuminate\Http\Request;

Expand All @@ -25,7 +26,20 @@ public function __construct()
*/
public function create()
{
return view('registration.index');
$loginIdsRange = range(1, 30);

shuffle($loginIdsRange);

$loginIds = array_slice($loginIdsRange, 0, 2);

$randomLogins = [];

foreach ($loginIds as $loginId) {

$randomLogins[] = User::find($loginId);
}

return view('registration.index', compact('randomLogins'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@

case 'message-response-form':

$('.center-alert').html(data.message).fadeIn(300).delay(2500).fadeOut(300);
// $('.center-alert').html(data.message).fadeIn(300).delay(2500).fadeOut(300);

$('.message-response-list').prepend('<div class="media listed-object-close">'+
'<div class="pull-left"><a href="#"><img class="media-object avatar small-avatar"'+
Expand Down Expand Up @@ -333,7 +333,7 @@
//Enable if you want the center alert to show
// $('.center-alert').html(data.message).fadeIn(300).delay(2500).fadeOut(300);

button.attr('disabled', 'disabled').text('Request sent');
button.attr('disabled', 'disabled').text('Requested');

break;

Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/functional/</directory>
<!-- <directory>./tests/commands/TestCreateFeedCommand.php</directory>
<directory>./tests/commands/TestCreateFeedCommand.php</directory>
<directory>./tests/commands/TestCreateFriendRequestCommand.php</directory>
<directory>./tests/commands/TestLoginUserCommand.php</directory>
<directory>./tests/commands/TestLogoutUserCommand.php</directory>
Expand All @@ -33,7 +33,7 @@
<directory>./tests/repositories/TestFeedRepository.php</directory>
<directory>./tests/repositories/TestFriendRepository.php</directory>
<directory>./tests/repositories/TestUserRepository.php</directory>
<directory>./tests/repositories/TestMessageRepository.php</directory> -->
<directory>./tests/repositories/TestMessageRepository.php</directory>
</testsuite>
</testsuites>
<php>
Expand Down
2 changes: 1 addition & 1 deletion public/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c3b1a7

Please sign in to comment.