Add quick link assign me in different views
This commit is contained in:
parent
dfea2f2365
commit
9d4be201aa
|
|
@ -14,6 +14,19 @@ use Kanboard\Core\ExternalTask\ExternalTaskException;
|
|||
*/
|
||||
class TaskModificationController extends BaseController
|
||||
{
|
||||
public function assignToMe()
|
||||
{
|
||||
$task = $this->getTask();
|
||||
$values = ['id' => $task['id'], 'owner_id' => $this->userSession->getId()];
|
||||
|
||||
if (! $this->helper->projectRole->canUpdateTask($task)) {
|
||||
throw new AccessForbiddenException(t('You are not allowed to update tasks assigned to someone else.'));
|
||||
}
|
||||
|
||||
$this->taskModificationModel->update($values);
|
||||
$this->redirectAfterQuickAction($task);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the start date automatically
|
||||
*
|
||||
|
|
@ -22,12 +35,34 @@ class TaskModificationController extends BaseController
|
|||
public function start()
|
||||
{
|
||||
$task = $this->getTask();
|
||||
$values = array('id' => $task['id'], 'date_started' => time());
|
||||
$values = ['id' => $task['id'], 'date_started' => time()];
|
||||
|
||||
if (! $this->helper->projectRole->canUpdateTask($task)) {
|
||||
throw new AccessForbiddenException(t('You are not allowed to update tasks assigned to someone else.'));
|
||||
}
|
||||
|
||||
$this->taskModificationModel->update($values);
|
||||
$this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])));
|
||||
$this->redirectAfterQuickAction($task);
|
||||
}
|
||||
|
||||
protected function redirectAfterQuickAction(array $task)
|
||||
{
|
||||
switch ($this->request->getStringParam('redirect')) {
|
||||
case 'board':
|
||||
$this->response->redirect($this->helper->url->to('BoardViewController', 'show', ['project_id' => $task['project_id']]));
|
||||
break;
|
||||
case 'list':
|
||||
$this->response->redirect($this->helper->url->to('TaskListController', 'show', ['project_id' => $task['project_id']]));
|
||||
break;
|
||||
case 'dashboard':
|
||||
$this->response->redirect($this->helper->url->to('DashboardController', 'show', [], 'project-tasks-'.$task['project_id']));
|
||||
break;
|
||||
case 'dashboard-tasks':
|
||||
$this->response->redirect($this->helper->url->to('DashboardController', 'tasks', ['user_id' => $this->userSession->getId()]));
|
||||
break;
|
||||
default:
|
||||
$this->response->redirect($this->helper->url->to('TaskViewController', 'show', ['project_id' => $task['project_id'], 'task_id' => $task['id']]));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Uredi opis',
|
||||
'New internal link' => 'Nova unutrašnja veza',
|
||||
'Display list of keyboard shortcuts' => 'Prikaži listu prečica na tastaturi',
|
||||
'Set start date' => 'Postavi početni datum',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Dodaj sliku za moj avatar',
|
||||
'Remove my image' => 'Ukloni moju sliku',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Modifica la descripció',
|
||||
'New internal link' => 'Nou enllaç intern',
|
||||
'Display list of keyboard shortcuts' => 'Visualització de la llista de dreceres de teclat',
|
||||
'Set start date' => 'Comença',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Puja la imatge meu avatar',
|
||||
'Remove my image' => 'Traieu la meva imatge',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Redigere beskrivelse',
|
||||
'New internal link' => 'Ny intern henvisning',
|
||||
'Display list of keyboard shortcuts' => 'Vise liste over tastaturgenveje',
|
||||
'Set start date' => 'Angive startdato',
|
||||
'Avatar' => 'Ikon',
|
||||
'Upload my avatar image' => 'Overføre ikon billede',
|
||||
'Remove my image' => 'Fjerne billede',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Beschreibung bearbeiten',
|
||||
'New internal link' => 'Neue interne Verbindung',
|
||||
'Display list of keyboard shortcuts' => 'Liste der Tastaturkürzel anzeigen',
|
||||
'Set start date' => 'Anfangsdatum setzen',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Mein Avatar Bild hochladen',
|
||||
'Remove my image' => 'Mein Bild entfernen',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Editar Descripción',
|
||||
'New internal link' => 'Nuevo enlace interno',
|
||||
'Display list of keyboard shortcuts' => 'Mostrar lista de atajos de teclado',
|
||||
'Set start date' => 'Establecer fecha de inicio',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Subir mi imagen de avatar',
|
||||
'Remove my image' => 'Eliminar mi imagen',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Modifier la description',
|
||||
'New internal link' => 'Nouveau lien interne',
|
||||
'Display list of keyboard shortcuts' => 'Afficher la liste des raccourcis claviers',
|
||||
'Set start date' => 'Définir la date de début',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Uploader mon image d\'avatar',
|
||||
'Remove my image' => 'Supprimer mon image',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
'Edit tasks in bulk' => 'Modifier les tâches en masse',
|
||||
'Choose the properties that you would like to change for the selected tasks.' => 'Choisissez les propriétés que vous souhaitez changer pour les tâches sélectionnées.',
|
||||
'Configure this project' => 'Configurer ce projet',
|
||||
'Start now' => 'Débuter maintenant',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
'Set start date' => 'Postavi početni datum',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Leírás szerkesztése',
|
||||
'New internal link' => 'Új belső hivatkozás',
|
||||
'Display list of keyboard shortcuts' => 'Gyorsbillentyűk listájának megjelenítése',
|
||||
'Set start date' => 'Kezdési dátum beállítása',
|
||||
'Avatar' => 'Avatár',
|
||||
'Upload my avatar image' => 'Saját avatárkép feltöltése',
|
||||
'Remove my image' => 'Saját kép eltávolítása',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Edit deskripsi',
|
||||
'New internal link' => 'Tautan internal baru',
|
||||
'Display list of keyboard shortcuts' => 'Tampilkan daftar pintasan keyboard',
|
||||
'Set start date' => 'Atur tanggal mulai',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Unggah foto avatar saya',
|
||||
'Remove my image' => 'Hapus foto saya',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Modifica descrizione',
|
||||
'New internal link' => 'Nuovo link interno',
|
||||
'Display list of keyboard shortcuts' => 'Mostra una lista di scorciatoie da tastiera',
|
||||
'Set start date' => 'Imposta la data di inizio',
|
||||
// 'Avatar' => '',
|
||||
'Upload my avatar image' => 'Carica l\'immagine del mio avatar',
|
||||
'Remove my image' => 'Rimuovi la mia immagine',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => '説明を編集',
|
||||
'New internal link' => '新しい内部リンク',
|
||||
'Display list of keyboard shortcuts' => 'キーボードショートカットのリストを表示',
|
||||
'Set start date' => '開始する',
|
||||
'Avatar' => 'アバター',
|
||||
'Upload my avatar image' => '自分のアバター画像をアップロード',
|
||||
'Remove my image' => '画像を削除',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => '설명 수정',
|
||||
'New internal link' => '새로운 내부 링크',
|
||||
'Display list of keyboard shortcuts' => '키보드 숏컷 리스트 보여주기',
|
||||
'Set start date' => '시작일 설정',
|
||||
'Avatar' => '아바타',
|
||||
'Upload my avatar image' => '아바타 이미지 올리기',
|
||||
'Remove my image' => '이미지 삭제',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Edytuj opis',
|
||||
'New internal link' => 'Nowy wewnętrzny link',
|
||||
'Display list of keyboard shortcuts' => 'Wyświetl skróty klawiszowe',
|
||||
'Set start date' => 'Ustaw datę rozpoczęcia',
|
||||
// 'Avatar' => '',
|
||||
'Upload my avatar image' => 'Prześlij avatar',
|
||||
'Remove my image' => 'Usuń',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Editar a descrição',
|
||||
'New internal link' => 'Novo link interno',
|
||||
'Display list of keyboard shortcuts' => 'Ver a lista dos atalhos de teclado',
|
||||
'Set start date' => 'Definir a data de início',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Enviar a minha imagem de avatar',
|
||||
'Remove my image' => 'Remover a minha imagem',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Editar descrição',
|
||||
'New internal link' => 'Nova ligação interna',
|
||||
'Display list of keyboard shortcuts' => 'Mostrar lista de atalhos do teclado',
|
||||
'Set start date' => 'Definir data de inicio',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Enviar a minha imagem de avatar',
|
||||
'Remove my image' => 'Remover a minha imagem',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Modifică descrierea',
|
||||
'New internal link' => 'Legătură internă nouă',
|
||||
'Display list of keyboard shortcuts' => 'Afișează lista de scurtături pe tastatură',
|
||||
'Set start date' => 'Definește data pornirii',
|
||||
'Avatar' => 'Avatar',
|
||||
'Upload my avatar image' => 'Încarcă o imagine de avatar',
|
||||
'Remove my image' => 'Șterge imaginea mea',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Изменение описания',
|
||||
'New internal link' => 'Новая внутренняя ссылка',
|
||||
'Display list of keyboard shortcuts' => 'Показать список клавиатурных сокращений',
|
||||
'Set start date' => 'Установить дату начала',
|
||||
'Avatar' => 'Аватар',
|
||||
'Upload my avatar image' => 'Загрузить моё изображение для аватара',
|
||||
'Remove my image' => 'Удалить моё изображение',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
// 'Edit description' => '',
|
||||
// 'New internal link' => '',
|
||||
// 'Display list of keyboard shortcuts' => '',
|
||||
// 'Set start date' => '',
|
||||
// 'Avatar' => '',
|
||||
// 'Upload my avatar image' => '',
|
||||
// 'Remove my image' => '',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Açıklamayı güncelle',
|
||||
'New internal link' => 'Yeni iç link',
|
||||
'Display list of keyboard shortcuts' => 'Kısayol tuşları listesini göster',
|
||||
'Set start date' => 'Başlangıç tarihi belirle',
|
||||
'Avatar' => 'Simge',
|
||||
'Upload my avatar image' => 'Avatar resmimi yükle',
|
||||
'Remove my image' => 'Resmimi kaldır',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Редагувати опис',
|
||||
'New internal link' => 'Новий зв\'язок',
|
||||
'Display list of keyboard shortcuts' => 'Показати перелік клавіатурних комбінацій',
|
||||
'Set start date' => 'Задати дату початку',
|
||||
'Avatar' => 'Аватар',
|
||||
'Upload my avatar image' => 'Завантажити зображення аватара',
|
||||
'Remove my image' => 'Видалити зображення',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => 'Chỉnh sửa mô tả',
|
||||
'New internal link' => 'Liên kết nội bộ mới',
|
||||
'Display list of keyboard shortcuts' => 'Hiển thị danh sách các phím tắt',
|
||||
'Set start date' => 'Đặt ngày bắt đầu',
|
||||
'Avatar' => 'Hình đại diện',
|
||||
'Upload my avatar image' => 'Tải lên hình ảnh đại diện của tôi',
|
||||
'Remove my image' => 'Hủy bỏ hình ảnh của tôi',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => '编辑描述',
|
||||
'New internal link' => '新建内部链接',
|
||||
'Display list of keyboard shortcuts' => '显示快捷键列表',
|
||||
'Set start date' => '开始任务',
|
||||
'Avatar' => '我的头像',
|
||||
'Upload my avatar image' => '上传我的头像',
|
||||
'Remove my image' => '删除我的头像',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,6 @@ return array(
|
|||
'Edit description' => '編輯描述',
|
||||
'New internal link' => '新增内部連接',
|
||||
'Display list of keyboard shortcuts' => '顯示快速鍵列表',
|
||||
'Set start date' => '開始任務',
|
||||
'Avatar' => '頭像',
|
||||
'Upload my avatar image' => '上傳我的頭像',
|
||||
'Remove my image' => '删除我的頭像',
|
||||
|
|
@ -1383,4 +1382,5 @@ return array(
|
|||
// 'Edit tasks in bulk' => '',
|
||||
// 'Choose the properties that you would like to change for the selected tasks.' => '',
|
||||
// 'Configure this project' => '',
|
||||
// 'Start now' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<div class="task-board-collapsed">
|
||||
<div class="task-board-saving-icon" style="display: none;"><i class="fa fa-spinner fa-pulse"></i></div>
|
||||
<?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task)) ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task, 'redirect' => 'board')) ?>
|
||||
<?= $this->modal->large('edit', '', 'TaskModificationController', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
<?php else: ?>
|
||||
<strong><?= '#'.$task['id'] ?></strong>
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
<div class="task-board-saving-icon" style="display: none;"><i class="fa fa-spinner fa-pulse fa-2x"></i></div>
|
||||
<div class="task-board-header">
|
||||
<?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task)) ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task, 'redirect' => 'board')) ?>
|
||||
<?= $this->modal->large('edit', '', 'TaskModificationController', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
<?php else: ?>
|
||||
<strong><?= '#'.$task['id'] ?></strong>
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@
|
|||
<div class="table-list-row color-<?= $task['color_id'] ?>">
|
||||
<?= $this->render('task_list/task_title', array(
|
||||
'task' => $task,
|
||||
'redirect' => 'dashboard',
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('task_list/task_details', array(
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<div class="table-list-row color-<?= $task['color_id'] ?>">
|
||||
<?= $this->render('task_list/task_title', array(
|
||||
'task' => $task,
|
||||
'redirect' => 'dashboard-tasks',
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('task_list/task_details', array(
|
||||
|
|
|
|||
|
|
@ -85,6 +85,9 @@
|
|||
<?= t('not assigned') ?>
|
||||
<?php endif ?>
|
||||
</span>
|
||||
<?php if ($editable && $task['owner_id'] != $this->user->getId()): ?>
|
||||
- <span><?= $this->url->link(t('Assign to me'), 'TaskModificationController', 'assignToMe', ['task_id' => $task['id'], 'project_id' => $task['project_id']]) ?></span>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<?php if ($task['creator_username']): ?>
|
||||
<li>
|
||||
|
|
@ -116,12 +119,14 @@
|
|||
<span><?= $this->dt->datetime($task['date_due']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if ($task['date_started']): ?>
|
||||
<li>
|
||||
<strong><?= t('Started:') ?></strong>
|
||||
<li>
|
||||
<strong><?= t('Started:') ?></strong>
|
||||
<?php if ($task['date_started']): ?>
|
||||
<span><?= $this->dt->datetime($task['date_started']) ?></span>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php elseif ($editable): ?>
|
||||
<span><?= $this->url->link(t('Start now'), 'TaskModificationController', 'start', ['task_id' => $task['id'], 'project_id' => $task['project_id']]) ?></span>
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<li>
|
||||
<strong><?= t('Created:') ?></strong>
|
||||
<span><?= $this->dt->datetime($task['date_creation']) ?></span>
|
||||
|
|
@ -164,11 +169,5 @@
|
|||
)) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($editable && empty($task['date_started'])): ?>
|
||||
<div class="buttons-header">
|
||||
<?= $this->url->button('play', t('Set start date'), 'TaskModificationController', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->hook->render('template:task:details:bottom', array('task' => $task)) ?>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -2,9 +2,14 @@
|
|||
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><strong>#<?= $task['id'] ?> <i class="fa fa-caret-down"></i></strong></a>
|
||||
<ul>
|
||||
<?php if ($this->projectRole->canUpdateTask($task)): ?>
|
||||
<?php if (array_key_exists('owner_id', $task) && $task['owner_id'] != $this->user->getId()): ?>
|
||||
<li>
|
||||
<?= $this->url->icon('hand-o-right', t('Assign to me'), 'TaskModificationController', 'assignToMe', ['task_id' => $task['id'], 'project_id' => $task['project_id'], 'redirect' => isset($redirect) ? $redirect : '']) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php if (array_key_exists('date_started', $task) && empty($task['date_started'])): ?>
|
||||
<li>
|
||||
<?= $this->url->icon('play', t('Set the start date automatically'), 'TaskModificationController', 'start', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
||||
<?= $this->url->icon('play', t('Set the start date automatically'), 'TaskModificationController', 'start', ['task_id' => $task['id'], 'project_id' => $task['project_id'], 'redirect' => isset($redirect) ? $redirect : '']) ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
<?= $this->render('task_list/task_title', array(
|
||||
'task' => $task,
|
||||
'show_items_selection' => true,
|
||||
'redirect' => 'list',
|
||||
)) ?>
|
||||
|
||||
<?= $this->render('task_list/task_details', array(
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<?php if (isset($show_items_selection)): ?>
|
||||
<input type="checkbox" data-list-item="selectable" name="tasks[]" value="<?= $task['id'] ?>">
|
||||
<?php endif ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task)) ?>
|
||||
<?= $this->render('task/dropdown', array('task' => $task, 'redirect' => isset($redirect) ? $redirect : '')) ?>
|
||||
<?php else: ?>
|
||||
<strong><?= '#'.$task['id'] ?></strong>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ return array(
|
|||
'Kanboard\\Controller\\CommentListController' => $baseDir . '/app/Controller/CommentListController.php',
|
||||
'Kanboard\\Controller\\CommentMailController' => $baseDir . '/app/Controller/CommentMailController.php',
|
||||
'Kanboard\\Controller\\ConfigController' => $baseDir . '/app/Controller/ConfigController.php',
|
||||
'Kanboard\\Controller\\CronjobController' => $baseDir . '/app/Controller/CronjobController.php',
|
||||
'Kanboard\\Controller\\CurrencyController' => $baseDir . '/app/Controller/CurrencyController.php',
|
||||
'Kanboard\\Controller\\CustomFilterController' => $baseDir . '/app/Controller/CustomFilterController.php',
|
||||
'Kanboard\\Controller\\DashboardController' => $baseDir . '/app/Controller/DashboardController.php',
|
||||
|
|
@ -234,6 +235,7 @@ return array(
|
|||
'Kanboard\\Controller\\SwimlaneController' => $baseDir . '/app/Controller/SwimlaneController.php',
|
||||
'Kanboard\\Controller\\TagController' => $baseDir . '/app/Controller/TagController.php',
|
||||
'Kanboard\\Controller\\TaskAjaxController' => $baseDir . '/app/Controller/TaskAjaxController.php',
|
||||
'Kanboard\\Controller\\TaskBulkChangePropertyController' => $baseDir . '/app/Controller/TaskBulkChangePropertyController.php',
|
||||
'Kanboard\\Controller\\TaskBulkController' => $baseDir . '/app/Controller/TaskBulkController.php',
|
||||
'Kanboard\\Controller\\TaskBulkMoveColumnController' => $baseDir . '/app/Controller/TaskBulkMoveColumnController.php',
|
||||
'Kanboard\\Controller\\TaskCreationController' => $baseDir . '/app/Controller/TaskCreationController.php',
|
||||
|
|
|
|||
|
|
@ -319,6 +319,7 @@ class ComposerStaticInitbdc3716ceecc7570f8ff9a8407f0ca0e
|
|||
'Kanboard\\Controller\\CommentListController' => __DIR__ . '/../..' . '/app/Controller/CommentListController.php',
|
||||
'Kanboard\\Controller\\CommentMailController' => __DIR__ . '/../..' . '/app/Controller/CommentMailController.php',
|
||||
'Kanboard\\Controller\\ConfigController' => __DIR__ . '/../..' . '/app/Controller/ConfigController.php',
|
||||
'Kanboard\\Controller\\CronjobController' => __DIR__ . '/../..' . '/app/Controller/CronjobController.php',
|
||||
'Kanboard\\Controller\\CurrencyController' => __DIR__ . '/../..' . '/app/Controller/CurrencyController.php',
|
||||
'Kanboard\\Controller\\CustomFilterController' => __DIR__ . '/../..' . '/app/Controller/CustomFilterController.php',
|
||||
'Kanboard\\Controller\\DashboardController' => __DIR__ . '/../..' . '/app/Controller/DashboardController.php',
|
||||
|
|
@ -360,6 +361,7 @@ class ComposerStaticInitbdc3716ceecc7570f8ff9a8407f0ca0e
|
|||
'Kanboard\\Controller\\SwimlaneController' => __DIR__ . '/../..' . '/app/Controller/SwimlaneController.php',
|
||||
'Kanboard\\Controller\\TagController' => __DIR__ . '/../..' . '/app/Controller/TagController.php',
|
||||
'Kanboard\\Controller\\TaskAjaxController' => __DIR__ . '/../..' . '/app/Controller/TaskAjaxController.php',
|
||||
'Kanboard\\Controller\\TaskBulkChangePropertyController' => __DIR__ . '/../..' . '/app/Controller/TaskBulkChangePropertyController.php',
|
||||
'Kanboard\\Controller\\TaskBulkController' => __DIR__ . '/../..' . '/app/Controller/TaskBulkController.php',
|
||||
'Kanboard\\Controller\\TaskBulkMoveColumnController' => __DIR__ . '/../..' . '/app/Controller/TaskBulkMoveColumnController.php',
|
||||
'Kanboard\\Controller\\TaskCreationController' => __DIR__ . '/../..' . '/app/Controller/TaskCreationController.php',
|
||||
|
|
|
|||
Loading…
Reference in New Issue