From 02dfca447bb42fbe6da2e8642cc567ea8f3b8a63 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 4 Nov 2016 17:07:17 +0200 Subject: [PATCH] message links fix --- frontend/views/chat/_chat_list_view.php | 13 +++++++++++-- frontend/views/layouts/company.php | 9 +++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/frontend/views/chat/_chat_list_view.php b/frontend/views/chat/_chat_list_view.php index e0a39e4..0c54f2e 100755 --- a/frontend/views/chat/_chat_list_view.php +++ b/frontend/views/chat/_chat_list_view.php @@ -1,6 +1,7 @@ @@ -15,7 +16,11 @@ use yii\helpers\Html;
interlocutor->userInfo->name ?>
-
Сообщения (newMessage) ?>), последнее от newMessage)->date ?>
+ 'cabinet-message-message-ico']).'Сообщения ('.count($model->newMessage).'), последнее от '.end($model->newMessage)->date, + Url::to(['chat/message', 'user_id' => $model->interlocutor->id]) + ); + ?>
(Есть непрочитанные)
@@ -34,7 +39,11 @@ use yii\helpers\Html;
interlocutor->userInfo->name ?>
-
Сообщения
+ 'cabinet-message-message-ico']).'Сообщения', + Url::to(['chat/message', 'user_id' => $model->interlocutor->id]) + ); + ?>
(Все прочитаны)
diff --git a/frontend/views/layouts/company.php b/frontend/views/layouts/company.php index e320b5c..42f7187 100755 --- a/frontend/views/layouts/company.php +++ b/frontend/views/layouts/company.php @@ -17,6 +17,15 @@
+
+ $this->params[ 'company' ]->id, +// ])); + ?> +
+ params[ 'company' ]->id != \Yii::$app->user->getId()) { // Форма "оставить заявку" -- libgit2 0.21.4