From dcd0f98a73155e5f3c369c8125be781222d88402 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 30 Jul 2018 10:41:47 +0800 Subject: [PATCH] * Set buttons in view page as same as in browse page. --- module/todo/view/view.html.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php index e671df5fbb..b5f534e11d 100644 --- a/module/todo/view/view.html.php +++ b/module/todo/view/view.html.php @@ -28,9 +28,9 @@
todo->desc; - if($todo->type == 'bug') echo html::a($this->createLink('bug', 'view', "id={$todo->idvalue}"), ' BUG#' . $todo->idvalue); - if($todo->type == 'task') echo html::a($this->createLink('task', 'view', "id={$todo->idvalue}"), ' TASK#' . $todo->idvalue); - if($todo->type == 'story') echo html::a($this->createLink('story', 'view', "id={$todo->idvalue}"), ' STORY#' . $todo->idvalue); + if($todo->type == 'bug') common::printLink('bug', 'view', "id={$todo->idvalue}", ' BUG#' . $todo->idvalue); + if($todo->type == 'task') common::printLink('task', 'view', "id={$todo->idvalue}", ' TASK#' . $todo->idvalue); + if($todo->type == 'story') common::printLink('story', 'view', "id={$todo->idvalue}", ' STORY#' . $todo->idvalue); ?>
desc;?>
@@ -123,15 +123,12 @@
account == $app->user->account) - { - if($todo->status != 'closed') echo html::a($this->createLink('todo', 'edit', "todoID=$todo->id"), "", '', "title='{$lang->todo->edit}' class='btn showinonlybody'"); - if($todo->status == 'done' || $todo->status == 'closed') echo html::a($this->createLink('todo', 'activate', "todoID=$todo->id"), "", 'hiddenwin', "title='{$lang->todo->activate}' class='btn showinonlybody'"); - if($todo->status == 'done') echo html::a($this->createLink('todo', 'close', "todoID=$todo->id"), "", 'hiddenwin', "title='{$lang->todo->close}' class='btn showinonlybody'"); - echo html::a($this->createLink('todo', 'delete', "todoID=$todo->id"), "", 'hiddenwin', "title='{$lang->todo->delete}' class='btn showinonlybody'"); + if($todo->status == 'done' || $todo->status == 'closed') common::printLink('todo', 'activate', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->activate}' class='btn showinonlybody'"); + if($todo->status == 'done') common::printLink('todo', 'close', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->close}' class='btn showinonlybody'"); + common::printLink('todo', 'edit', "todoID=$todo->id", "", '', "title='{$lang->todo->edit}' class='btn showinonlybody'"); + common::printLink('todo', 'delete', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->delete}' class='btn showinonlybody'"); - echo html::a('#commentModal', '', '', "title='{$lang->comment}' data-toggle='modal' class='btn'"); - } + echo html::a('#commentModal', '', '', "title='{$lang->comment}' data-toggle='modal' class='btn'"); if($this->session->todoList) {