|
|
@ -14,9 +14,19 @@ |
|
|
<span class="label label-default pull-right">{{ $comment->created_at }}</span> |
|
|
<span class="label label-default pull-right">{{ $comment->created_at }}</span> |
|
|
<strong>{{ $comment->creator->name }}</strong> |
|
|
<strong>{{ $comment->creator->name }}</strong> |
|
|
</legend> |
|
|
</legend> |
|
|
|
|
|
<div class="pull-right"> |
|
|
@can('update', $comment) |
|
|
@can('update', $comment) |
|
|
{{ link_to_route('projects.comments.index', __('app.edit'), [$project, 'action' => 'comment-edit', 'comment_id' => $comment->id], ['id' => 'edit-comment-'.$comment->id, 'class' => 'small pull-right', 'title' => __('comment.edit')]) }} |
|
|
|
|
|
|
|
|
{{ link_to_route('projects.comments.index', __('app.edit'), [$project, 'action' => 'comment-edit', 'comment_id' => $comment->id], ['id' => 'edit-comment-'.$comment->id, 'class' => 'small', 'title' => __('comment.edit')]) }} |
|
|
@endcan |
|
|
@endcan |
|
|
|
|
|
@can('delete', $comment) |
|
|
|
|
|
{!! FormField::delete( |
|
|
|
|
|
['route' => ['projects.comments.destroy', $project, $comment], 'class' => ''], |
|
|
|
|
|
'×', |
|
|
|
|
|
['class' => 'btn-link', 'id' => 'delete-comment-'.$comment->id], |
|
|
|
|
|
['comment_id' => $comment->id, 'page' => request('page')] |
|
|
|
|
|
) !!} |
|
|
|
|
|
@endcan |
|
|
|
|
|
</div> |
|
|
{!! nl2br($comment->body) !!} |
|
|
{!! nl2br($comment->body) !!} |
|
|
</div> |
|
|
</div> |
|
|
@endforeach |
|
|
@endforeach |