From 9e92401815567d3ec22019105e11368c52f8ec92 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Tue, 29 Nov 2016 13:18:57 +0800 Subject: [PATCH] * if isonlybody do not display subdivide and create testcase button. --- module/story/view/view.html.php | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index ad8196582e..95f5856e03 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -44,7 +44,7 @@ common::printIcon('story', 'change', "storyID=$story->id", $story); common::printIcon('story', 'review', "storyID=$story->id", $story); - if($story->status != 'closed') + if($story->status != 'closed' and !isonlybody()) { $misc = common::hasPriv('story', 'batchCreate') ? "class='btn' data-toggle='modal' data-type='iframe' data-width='95%'" : "class='disabled'"; $link = common::hasPriv('story', 'batchCreate') ? $this->createLink('story', 'batchCreate', "productID=$story->product&branch=$story->branch&moduleID=$story->module&storyID=$story->id", '', true) : '#'; @@ -54,20 +54,23 @@ common::printIcon('story', 'close', "storyID=$story->id", $story, 'button', '', '', 'iframe text-danger', true); common::printIcon('story', 'activate', "storyID=$story->id", $story, 'button', '', '', 'iframe text-success', true); - $this->app->loadLang('testcase'); - echo "
"; - echo ""; - echo ""; - echo "
"; + if(!isonlybody()) + { + $this->app->loadLang('testcase'); + echo "
"; + echo ""; + echo ""; + echo "
"; + } if($from == 'project') common::printIcon('task', 'create', "project=$param&storyID=$story->id&moduleID=$story->module", '', 'button', 'smile'); echo '';