Skip to content

Commit 077c329

Browse files
committed
updated views
1 parent 677ac04 commit 077c329

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

app/Lio/Notifications/NotificationCreator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public function __construct(NotificationRepository $notifications, NotificationP
1212

1313
public function create($message, $model, $user, $push = false)
1414
{
15+
16+
$message = "New reply to your thread: {$model->title}";
17+
1518
$notification = $this->notifications->getNew();
1619
$notification->message = $message;
1720
$notification->owner_type = get_class($model);
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<div class="alert-box alert push">
2-
<p id="notification-message">{{ $message }}</p>
3-
<a id="notification-url" href="{{ $url }}">View</a>
4-
</div>
1+
<section class="alert">
2+
<div class="alert-box alert success">
3+
{{ $message }}
4+
</div>
5+
</section>

app/views/layouts/default.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
<div class="top-header">
1919
@include('layouts._top_nav')
2020
</div>
21-
21+
@include('layouts._flash')
2222

2323
<div class="holder">
24-
@include('layouts._flash')
2524
<div class="table">
2625
{{ $content }}
2726
</div>
@@ -40,7 +39,7 @@
4039
var channel = pusher.subscribe('{{ Auth::user()->getPusherChannel() }}');
4140
4241
channel.bind('message', function(data) {
43-
$('.top-header').after(data.message).fadeIn();
42+
$('.top-header').after(data.message);
4443
});
4544
4645
</script>

0 commit comments

Comments
 (0)