Skip to content

Commit

Permalink
Join page
Browse files Browse the repository at this point in the history
  • Loading branch information
m1guelpf committed Jan 14, 2017
1 parent 10003e6 commit d58191a
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 14 deletions.
22 changes: 22 additions & 0 deletions app/Http/Controllers/JoinController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Org;

class JoinController extends Controller
{
public function showPage($id)
{
$org = Org::find($id);
if (!$org){
$notification = [
'message' => 'Error! That organization is not in our database!',
'alert-type' => 'error',
];
return redirect('')->with('notification', $notification);
}
return view('join')->with('org', $org);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function up()
$table->integer('userid');
$table->string('username');
$table->string('role')->default('undefined');
$table->string('password')->nullable();
});
}

Expand Down
1 change: 1 addition & 0 deletions dht_feed.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
le
1 change: 1 addition & 0 deletions dht_feed.dat.old
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
le
15 changes: 7 additions & 8 deletions public/css/join.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@

html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}

.full-height {
Expand Down
12 changes: 6 additions & 6 deletions resources/views/join.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<body>
<div class="flex-center position-ref full-height">
<div class="top-right links">
@if (Auth::check())
<a href="{{ url('/dashboard') }}">Dashboard</a>
@else
<a href="{{ url('/login') }}">Login</a>
</div>
@endif
@if (Auth::check())
<a href="{{ url('/dashboard') }}">Dashboard</a>
@else
<a href="{{ url('/login') }}">Login</a>
</div>
@endif

<div class="content">
<div class="title m-b-md">
Expand Down
1 change: 1 addition & 0 deletions resume.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d10:.fileguard40:02C9EB067FCB085DBD25D0E186CFA381F8EE75BE3:recld7:aggappsle7:aggrecsle6:ourrecleeee
1 change: 1 addition & 0 deletions resume.dat.old
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d10:.fileguard40:02C9EB067FCB085DBD25D0E186CFA381F8EE75BE3:recld7:aggappsle7:aggrecsle6:ourrecleeee
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
Route::post('logout', 'LoginController@logoutUser');
Route::get('dashboard', 'DashboardController@showDashboard');
Route::get('sync', 'GithubController@syncOrgs');
Route::get('test/{id}', 'JoinController@showPage');
Binary file added settings.dat
Binary file not shown.
Binary file added settings.dat.old
Binary file not shown.

0 comments on commit d58191a

Please sign in to comment.