Permalink
Browse files

No profile picture default pic

  • Loading branch information...
Joren Van Hocht Joren Van Hocht
Joren Van Hocht authored and Joren Van Hocht committed Jun 13, 2015
1 parent acea931 commit d96da2d0bbc054f00b9c706beb56546e35818b9c
@@ -87,9 +87,11 @@
@if($comment->revised == 2)
<div class="media">
<div class="media-left">
<a href="#">
@if($comment->user->profilepicture != null)
<img class="media-object" src="{{URL::asset($comment->user->profilepicture)}}" alt="..." width="64px" height="64px">
</a>
@else
<img class="media-object" src="{{URL::asset('assets/blogify/img/profile-icon.png')}}" alt="..." width="64px" height="64px">
@endif
</div>
<div class="media-body">
<p>
@@ -319,7 +319,7 @@ var app = {
CKEDITOR.config.height = 400;
CKEDITOR.config.extraPlugins = 'wordcount';
CKEDITOR.replace( 'post',{
filebrowserUploadUrl: app.generateBaseUrl() + '/admin/posts/image/upload/'
filebrowserUploadUrl: app.generateBaseUrl() + '/admin/posts/image/upload'
} );
}
},
@@ -419,9 +419,9 @@ var app = {
if ( app.slug.slug.length > 0 )
{
$.ajax({
'method': 'get',
'type': 'get',
'url': app.slug.apiBaseUrl,
'type': 'json'
'dateType': 'json'
}).done( function( data ) {
app.slug.fillSlugField(data);
} );
@@ -483,7 +483,7 @@ var app = {
headers: {
'X-CSRF-TOKEN': $("input[name='_token']")[0].value
},
method: 'post',
type: 'post',
url: app.generateBaseUrl() + '/admin/categories',
data: { 'name': $('#newCategory')[0].value },
dataType: 'json',
@@ -553,7 +553,7 @@ var app = {
headers: {
'X-CSRF-TOKEN': $("input[name='_token']")[0].value
},
method: 'post',
type: 'post',
url: app.generateBaseUrl() + '/admin/tags',
data: { 'tags': $('#newTags')[0].value },
dataType: 'json',
@@ -620,7 +620,7 @@ var app = {
for (var i = 0; i < hashes.length; i++)
{
$.ajax({
method: 'get',
type: 'get',
url: app.generateBaseUrl() + '/admin/api/tags/' + hashes[i],
dataType: 'json',
success: function(data)
@@ -777,8 +777,8 @@ var app = {
headers: {
'X-CSRF-TOKEN': $("input[name='_token']")[0].value
},
method: 'post',
url: app.generateBaseUrl() + '/admin/api/autosave/',
type: 'post',
url: app.generateBaseUrl() + '/admin/api/autosave',
data: app.autoSave.data,
dataType: 'json',
success: function( response )
Binary file not shown.
@@ -75,7 +75,11 @@
{!! Form::label('profilepicture', trans("blogify::profiles.form.profilepicture.label") ) !!}
</div>
<div class="col-sm-10">
<img src="{{URL::asset($user->profilepicture)}}" class="img-rounded">
@if($user->profilepicture != null)
<img src="{{URL::asset($user->profilepicture)}}" class="img-rounded">
@else
<img src="{{URL::asset('assets/blogify/img/profile-icon.png')}}" class="img-rounded">
@endif
{!! Form::file('profilepicture','', ['class' => 'form-control form-small']) !!}
</div>
</div>

0 comments on commit d96da2d

Please sign in to comment.