<?php if (app\components\OvcUser::getCurrentUser()->id == $comment->user_id) { ?> <span class="glyphicon glyphicon-edit comment-edit" title="edit" data-comment-id="<?php echo $comment->id; ?> " data-url='<?php echo yii\helpers\Url::to(['comment/inline-update', 'id' => $comment->id]); ?> '></span> <?php } ?> <?php if (app\components\OvcUser::getCurrentUser()->id == $comment->user_id || \app\components\OvcUser::isUserAdmin()) { ?> <span class="glyphicon glyphicon-trash comment-delete" data-url='<?php echo yii\helpers\Url::to(['comment/delete', 'id' => $comment->id, 'video_id' => $comment->video_id]); ?> ' data-comment-id='<?php echo $comment->id; ?> ' title="trash"></span> <?php } ?> </div> <p> <strong class="ucfirst"><?php
<?php use app\components\OvcVideoPlayerWidget; /* @var $this yii\web\View */ /* @var $model app\models\Video */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Videos', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; $currentUserId = app\components\OvcUser::getCurrentUser()->id; ?> <div class="row"> <div class="col-lg-7"> <?php echo OvcVideoPlayerWidget::widget(['path' => $model->path]); ?> </div> <div class="col-lg-5"> <table class="table table-bordered table-striped"> <tr> <td width="100">Title</td> <td><?php echo $model->title; ?> </td> </tr> <tr> <td>Description</td> <td> <div style="height: 92px; overflow-y: scroll;"><?php echo $model->description; ?>