diff --git a/module/my/control.php b/module/my/control.php index 8740535aaf..28cbc46372 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -72,7 +72,7 @@ class my extends control * @access public * @return void */ - public function story() + public function story($type = 'assignedto') { /* Save session. */ $this->session->set('storyList', $this->app->getURI(true)); @@ -80,8 +80,9 @@ class my extends control /* Assign. */ $this->view->header->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->story; $this->view->position[] = $this->lang->my->story; - $this->view->stories = $this->loadModel('story')->getUserStories($this->app->user->account, 'active,draft,changed'); + $this->view->stories = $this->loadModel('story')->getUserStories($this->app->user->account, $type); $this->view->users = $this->user->getPairs('noletter'); + $this->view->type = $type; $this->display(); } diff --git a/module/my/lang/en.php b/module/my/lang/en.php index 36a8ada467..073bc6abc0 100644 --- a/module/my/lang/en.php +++ b/module/my/lang/en.php @@ -18,3 +18,8 @@ $lang->my->taskMenu->openedByMe = 'My opened'; $lang->my->taskMenu->finishedByMe = 'My finished'; $lang->my->taskMenu->closedByMe = 'My closed'; $lang->my->taskMenu->canceledByMe = 'My canceled'; + +$lang->my->storyMenu->assignedToMe = 'To me'; +$lang->my->storyMenu->openedByMe = 'My opened'; +$lang->my->storyMenu->reviewedByMe = 'My reviewed'; +$lang->my->storyMenu->closedByMe = 'My closed'; diff --git a/module/my/lang/zh-cn.php b/module/my/lang/zh-cn.php index 22b8c186bb..9ff7793de9 100644 --- a/module/my/lang/zh-cn.php +++ b/module/my/lang/zh-cn.php @@ -18,3 +18,8 @@ $lang->my->taskMenu->openedByMe = '由我创建'; $lang->my->taskMenu->finishedByMe = '由我完成'; $lang->my->taskMenu->closedByMe = '由我关闭'; $lang->my->taskMenu->canceledByMe = '由我取消'; + +$lang->my->storyMenu->assignedToMe = '指派给我'; +$lang->my->storyMenu->openedByMe = '由我创建'; +$lang->my->storyMenu->reviewedByMe = '由我评审'; +$lang->my->storyMenu->closedByMe = '由我关闭'; diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 676169af82..54f61b44c3 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -12,6 +12,18 @@ ?> +