Skip to content

Commit a3cc5a6

Browse files
committed
user_id project creation fix.
1 parent e2991ac commit a3cc5a6

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

app/Http/Controllers/ProjectController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function projectCreateProject(request $request)
1919
$project->website_link = $request['website_link'];
2020
$project->get_involved_pitch = $request['get_involved_pitch'];
2121
$project->project_admin_user_id = $request->user()->id;
22+
$project->user_id = $request->user()->id;
2223
$project->save();
2324

2425
$connection = new User_Projects();

public/css/app.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Light Orange #ffe7c9
4040
padding-top:22px;
4141
}
4242
.navbar-inverse .navbar-nav>li>a:hover{
43-
color: black;
43+
color: white;
4444
}
4545

4646
/* Title "SoftwareHerd" */
@@ -58,3 +58,26 @@ Light Orange #ffe7c9
5858
.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
5959
background-color: #c93d3d;
6060
}
61+
62+
#avatar-nav {
63+
width:30px;
64+
height:auto;
65+
border-radius:50%;
66+
margin-top:4%;
67+
}
68+
69+
70+
@media (max-width: 900px) {
71+
#avatar-nav {
72+
width:30px; height:auto; border-radius:50%; margin-top:4%;
73+
}
74+
}
75+
76+
77+
@media (max-width: 600px) {
78+
#avatar-nav {
79+
width:30px; height:auto; border-radius:50%; margin-top:4%;
80+
}
81+
}
82+
83+

resources/views/layouts/master.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- Latest compiled and minified CSS -->
1616
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
1717
<!-- Styles -->
18-
<link href="/css/app.css" rel="stylesheet">
18+
<link rel="stylesheet" href="{{ URL::asset('/css/app.css') }}">
1919
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto">
2020

2121

@@ -80,7 +80,7 @@
8080
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;"> {{ csrf_field() }}
8181
</form>
8282
<li><a href="/user/{{Auth::user()->id}}">My Profile</a></li>
83-
<a href="/user/{{Auth::user()->id}}"><img class="avatar" src="/uploads/avatars/{{ Auth::user()->avatar }} " style="width:30px; height:auto; border-radius:50%; margin-top:4%;"></a>
83+
<a href="/user/{{Auth::user()->id}}"><img class="av-nav" src="/uploads/avatars/{{ Auth::user()->avatar }} " id="avatar-nav" ></a>
8484
</ul>
8585
</div><!--/.nav-collapse -->
8686
</div>

resources/views/new_project.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<textarea class="form-control" name="slack_link" id="new-project" rows="2" placeholder="Slack Link Here"></textarea>
1919
<textarea class="form-control" name="website_link" id="new-project" rows="2" placeholder="Website Link Here"></textarea>
2020
<textarea class="form-control" name="get_involved_pitch" id="new-project" rows="5" placeholder="Explain how to get involved"></textarea>
21-
</div>
21+
<input type="hidden" value="{{ Auth::user()->id }}" name="user_id">
22+
</div>
2223
<button type="submit" class="btn btn-primary">Create Post</button>
2324
<input type="hidden" value="{{ Session::token() }}" name="_token">
2425
{{ csrf_field() }}

0 commit comments

Comments
 (0)