Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print assigned users on wall stream #214

Merged
merged 1 commit into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.7.1 (Unreleased)
-------------------------------
- Enh #210: Print assigned users on wall stream


1.7.0-beta.1 (November 7, 2022)
-------------------------------
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Tasks",
"description": "Simple taskmanager for your spaces.",
"keywords": ["task", "todo"],
"version": "1.7.0-beta.1",
"version": "1.7.1",
"homepage": "https://github.com/humhub/tasks",
"humhub": {
"minVersion": "1.13"
Expand Down
22 changes: 12 additions & 10 deletions widgets/TaskRoleInfoBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ public function getTitle()

public function getValue()
{
if ( $this->task->isTaskResponsible()) {
return Icon::get('check')->color($this->view->theme->variable('success')).' '.Yii::t('TasksModule.base', 'You are responsible!');
} else if($this->task->isTaskAssigned()) {
return Icon::get('check')->color($this->view->theme->variable('success')).' '.Yii::t('TasksModule.base', 'You are assigned!');
} else if($this->task->canProcess()) {
if ($this->task->hasTaskAssigned()) {
return TaskUserList::widget(['users' => $this->task->taskAssignedUsers]);
}

if ($this->task->isTaskResponsible()) {
return Icon::get('check')->color($this->view->theme->variable('success')).' '.Yii::t('TasksModule.base', 'You are responsible!');
} else if($this->task->isTaskAssigned()) {
return Icon::get('check')->color($this->view->theme->variable('success')).' '.Yii::t('TasksModule.base', 'You are assigned!');
} else if($this->task->canProcess()) {
return Icon::get('times')->color($this->view->theme->variable('danger')).' '.Yii::t('TasksModule.base', 'Anyone can work on this task!');
} else {
return Icon::get('times')->color($this->view->theme->variable('danger')).' '.Yii::t('TasksModule.base', 'This task can only be processed by assigned and responsible users.');
}
} else {
return Icon::get('times')->color($this->view->theme->variable('danger')).' '.Yii::t('TasksModule.base', 'This task can only be processed by assigned and responsible users.');
}
}


}