= \tracker\widgets\BackBtn::widget(['alternativeUrl' => ['index']]) ?>
- created_by === (int)Yii::$app->user->id) : ?>
-
= \tracker\widgets\DocumentCategoryLabel::widget(['category' => $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([