mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
(Update) PM System
- Fixed To: “username” from sender to proper receiver - Fixed Breadcrumbs
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li class="active">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.inbox') }}</span>
|
||||
<a href="{{ route('inbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.inbox') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@@ -36,7 +38,7 @@
|
||||
<a href="{{ route('inbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
|
||||
<button type="button" id="btn_refresh" class="btn btn-primary dropdown-toggle" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></button>
|
||||
</a>
|
||||
<button type="button" id="btn_delete_messages" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete"><i class="fa fa-trash"></i></button>
|
||||
{{--<button type="button" id="btn_delete_messages" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete"><i class="fa fa-trash"></i></button>--}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 col-xs-7">
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li class="active">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.message') }}</span>
|
||||
<a href="{{ route('message', array('username' => Auth::user()->username, 'id' => Auth::user()->id, 'pmid' => {{ $pm->id }})) }}">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.message') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li class="active">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.outbox') }}</span>
|
||||
<a href="{{ route('outbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.outbox') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
@@ -39,7 +41,7 @@
|
||||
@foreach($pms as $p)
|
||||
{{ Form::hidden('invisible', 'id', array('id' => 'id')) }}
|
||||
<tr>
|
||||
<td class="col-sm-2"><a href="{{ route('profil', ['username' => $p->sender->username, 'id' => $p->sender->id]) }}" title="">{{ $p->sender->username}}</a></td>
|
||||
<td class="col-sm-2"><a href="{{ route('profil', ['username' => $p->receiver->username, 'id' => $p->receiver->id]) }}" title="">{{ $p->receiver->username}}</a></td>
|
||||
<td class="col-sm-5"><a href="{{ route('message', ['username' => $user->username , 'id' => $user->id , 'pmid' => $p->id]) }}">{{ $p->subject }}</a></td>
|
||||
<td class="col-sm-2">{{ $p->created_at->diffForHumans() }}</td>
|
||||
</tr>
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<li class="active">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.send') }} {{ trans('pm.message') }}</span>
|
||||
<a href="{{ route('create', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
|
||||
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.send') }} {{ trans('pm.message') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@stop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user