Strimoid/Strimoid

View on GitHub
resources/views/user/widgets/comment_reply.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<div class="panel-default comment comment_reply" data-id="{!! $reply->hashId() !!}" data-parent-id="{!! $reply->parent->hashId() !!}">
    <a name="{!! $reply->hashId() !!}"></a>

    <div class="comment_avatar">
        <img src="{!! $reply->user->getAvatarPath() !!}" alt="{!! $reply->user->name !!}" class="{!! $reply->user->getSexClass() !!}">
    </div>

    <div class="panel-heading comment_header">
        <a href="{!! route('user_profile', $reply->user->name) !!}" class="comment_author">{!! $reply->user->getColoredName() !!}</a>

        <span class="pull-right">
            <i class="fa fa-clock-o"></i>
            <a href="{!! $reply->getURL() !!}" rel="nofollow">
                @include('global.el.time', ['date' => $reply->created_at])
            </a>

            <span class="voting" data-id="{!! $reply->hashId() !!}" state="{!! $reply->getVoteState() !!}" data-type="comment_reply">
                <button type="button" class="btn btn-secondary btn-xs vote-btn-up @if ($reply->getVoteState() == 'uv') btn-success @endif">
                    <i class="fa fa-arrow-up vote-up"></i> <span class="count">{!! $reply->uv !!}</span>
                </button>

                <button type="button" class="btn btn-secondary btn-xs vote-btn-down @if ($reply->getVoteState() == 'dv') btn-danger @endif">
                    <i class="fa fa-arrow-down vote-down"></i> <span class="count">{!! $reply->dv !!}</span>
                </button>
            </span>
        </span>
    </div>

    <div class="comment_text md">
        {!! $reply->text !!}
    </div>
</div>