Skip to content

Commit

Permalink
Add demo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ziishaned committed Mar 16, 2017
1 parent 7ce3a22 commit bb6ebc2
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 13 deletions.
18 changes: 9 additions & 9 deletions app/Models/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ public static function boot()
{
parent::boot();

static::created(function($page) {
(new Page)->notify(new CreatePageNotification($page));
});
// static::created(function($page) {
// (new Page)->notify(new CreatePageNotification($page));
// });

static::updated(function($page) {
(new Page)->notify(new UpdatePageNotification($page));
});
// static::updated(function($page) {
// (new Page)->notify(new UpdatePageNotification($page));
// });

static::deleting(function($page) {
(new Page)->notify(new DeletePageNotification($page));
});
// static::deleting(function($page) {
// (new Page)->notify(new DeletePageNotification($page));
// });
}

public function comments()
Expand Down
1 change: 1 addition & 0 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@

Cviebrock\EloquentSluggable\ServiceProvider::class,
Baum\Providers\BaumServiceProvider::class,
Intervention\Image\ImageServiceProvider::class
],

/*
Expand Down
20 changes: 20 additions & 0 deletions demo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
![Imgur](http://i.imgur.com/o9VcRdQ.png)
![Imgur](http://i.imgur.com/Bn0utms.png)
![Imgur](http://i.imgur.com/GI33qAi.png)
![Imgur](http://i.imgur.com/y0Zaq9h.png)
![Imgur](http://i.imgur.com/SbzPu8I.png)
![Imgur](http://i.imgur.com/SbzPu8I.png)
![Imgur](http://i.imgur.com/X4tOiqL.png)
![Imgur](http://i.imgur.com/kgkcYPj.png)
![Imgur](http://i.imgur.com/hjKmHXV.png)
![Imgur](http://i.imgur.com/U2UAKb5.png)
![Imgur](http://i.imgur.com/MXbdBp0.png)
![Imgur](http://i.imgur.com/FbxEEG5.png)
![Imgur](http://i.imgur.com/hjKmHXV.png)
![Imgur](http://i.imgur.com/x1ZXDhh.png)
![Imgur](http://i.imgur.com/ksNCp0Q.png)
![Imgur](http://i.imgur.com/v4XHqTp.png)
![Imgur](http://i.imgur.com/bbMUN2K.png)
![Imgur](http://i.imgur.com/7OVAHZd.png)
![Imgur](http://i.imgur.com/sY3O6Lf.png)
![Imgur](http://i.imgur.com/Cbftnth.png)
2 changes: 1 addition & 1 deletion resources/views/page/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="clearfix"></div>
</nav>
</div>
<div class="formated-wiki-description">
<div class="markdown-body">
{!! $page->description !!}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/page/partials/comment.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="media">
<div class="pull-left profile-image-con">
@if(!empty($comment->user->profile_image))
<img class="media-object img-rounded profile-image" src="/img/{{ $comment->user->profile_image }}" alt="Image" width="44" height="44">
<img class="media-object img-rounded profile-image" src="/img/avatars/{{ $comment->user->profile_image }}" alt="Image" width="44" height="44">
@else
<img class="media-object img-rounded profile-image" src="/img/no-image.png" alt="Image" width="44" height="44">
@endif
Expand Down
6 changes: 5 additions & 1 deletion resources/views/user/partials/activity.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
@foreach($activities as $activity)
<div class="media event">
<a class="pull-left event-user-image" href="{{ route('users.show', [$team->slug, $activity->user->slug]) }}">
<img class="media-object" style="border-radius: 3px;" src="/img/no-image.png" width="42" height="42" alt="Image">
@if(!empty($user->profile_image))
<img class="media-object" style="border-radius: 3px;" src="/img/avatars/{{ $user->profile_image }}" width="42" height="42" alt="Image">
@else
<img class="media-object" style="border-radius: 3px;" src="/img/no-image.png" width="42" height="42" alt="Image">
@endif
</a>
<div class="media-body">
<div class="event-top">
Expand Down
6 changes: 5 additions & 1 deletion resources/views/user/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
<div class="row no-container">
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3 text-center">
<div class="user-image">
<img src="/img/no-image.png" width="180" height="180" style="border-radius: 3px;">
@if(!empty($user->profile_image))
<img src="/img/avatars/{{ $user->profile_image }}" alt="Image" width="180" height="180" style="border-radius: 3px;">
@else
<img src="/img/no-image.png" alt="Image" width="180" height="180" style="border-radius: 3px;">
@endif
</div>
<div class="user-detail">
<h1 class="header">John Doe</h1>
Expand Down

0 comments on commit bb6ebc2

Please sign in to comment.