diff --git a/views/document/view.php b/views/document/view.php index 684cb63..9dd7c03 100644 --- a/views/document/view.php +++ b/views/document/view.php @@ -29,8 +29,15 @@
['index']]) ?> - created_by === (int)Yii::$app->user->id) : ?> -
+
+ trigger( + 'RENDER-ACTION-BUTTONS-DOCUMENT', + new \yii\base\Event([ + 'sender' => $model, + 'data' => [] + ]) + ) ?> + created_by === (int)Yii::$app->user->id) : ?> $model->id, @@ -45,8 +52,8 @@ -
- + +

$model->categoryModel]) ?>

@@ -202,6 +209,7 @@ class="img-rounded tt img_margin" \tracker\models\Issue::tableName() . '.id = child_id' ) ->andWhere('parent_id IS NULL') + ->orderBy([\tracker\models\Issue::tableName() . '.deadline' => SORT_ASC]) ->all(); ?> 0) : ?> @@ -219,8 +227,17 @@ function subtaskRender(\tracker\models\Issue $issue, \yii\i18n\Formatter $format echo Yii::t('TrackerIssuesModule.views', 'constantly'); echo Html::endTag('span'); } - echo ' '; - echo $formatter->asDate($issue->content->created_at); + + if ($issue->deadline) { + echo ' '; + echo Html::beginTag('span', [ + 'data-toggle' => 'tooltip', + 'title' => Yii::t('TrackerIssuesModule.views', 'Deadline') + ]); + echo $formatter->asDate($issue->deadline); + echo Html::endTag('span'); + } + echo ' '; $user = $issue->content->getCreatedBy()->one(); $createrImage = \humhub\modules\user\widgets\Image::widget([