session->getFlash('artbox_comment_success') ) != NULL) {
        echo Html::tag('p', $success);
    }
echo '
';
echo 'Комментарии
';
    echo ListView::widget([
        'dataProvider' => $comments,
        'itemOptions'  => $item_options,
        'itemView'     => $item_view,
        'emptyText'    => false,
        'summary'      => '',
        'viewParams'   => [
            'display_name'  => $display_name,
            'reply'         => $reply,
            'delete'        => $delete,
            'more'          => $more,
            'last'          => $comments->count,
        ],
        'beforeItem' => function ($model, $key, $index, $widget) use ($more, $comments) {
                if ($more['key'] == $index and $more['show_'] ){
                    
                    return "Показать еще
                                ";
                }
        },
        'afterItem' => function ($model, $key, $index, $widget) use ($more, $comments) {
            if ($index == ($comments->count-1) and $more['show_'] and $more['key'] < $comments->count){
                
                return "
Скрыть комментарии ";
            }
        }
    
        
    ]);
    Pjax::end();