diff --git a/module/execution/ui/story.html.php b/module/execution/ui/story.html.php index a77aa9e60e..bcf6decbe6 100644 --- a/module/execution/ui/story.html.php +++ b/module/execution/ui/story.html.php @@ -95,6 +95,22 @@ $linkPlanItem = array('text' => $lang->execution->linkStoryByPlan, 'url' => '#li $product ? toolbar ( + common::hasPriv('execution', 'storykanban') && $storyType == 'story' ? btnGroup + ( + btn + ( + setClass('text-primary font-bold shadow-inner bg-canvas'), + set::icon('format-list-bulleted'), + set::hint($lang->execution->list), + set::url(inlink('story', "executionID={$execution->id}&storyType={$storyType}&orderBy={$orderBy}&type=all")) + ), + btn + ( + set::icon('kanban'), + set::hint($lang->execution->kanban), + set::url($this->createLink('execution', 'storykanban', "executionID={$execution->id}")) + ), + ) : null, hasPriv('story', 'report') ? item(set(array ( 'text' => $lang->story->report->common, diff --git a/module/execution/view/storykanban.html.php b/module/execution/view/storykanban.html.php index 8e4190ab52..5e2591bb25 100644 --- a/module/execution/view/storykanban.html.php +++ b/module/execution/view/storykanban.html.php @@ -35,9 +35,11 @@ $canLinkStory = $execution->hasProduct or $execution->multiple; createLink('execution', 'storykanban', "executionID=$execution->id"), "  ", '', "class='btn btn-icon text-primary switchBtn' title='{$lang->execution->kanban}' data-type='bykanban'");?> + loadModel('story')->checkForceReview()) common::printLink('story', 'create', "productID=$productID&branch=&moduleID=0&story=0&execution=$execution->id", " " . $lang->execution->createStory, '', "class='btn btn-secondary' class='btn btn-link export' data-group='execution'");?> index->oldPages[] = 'ai-miniprograms'; $config->index->oldPages[] = 'ai-prompts'; $config->index->oldPages[] = 'ai-promptview'; $config->index->oldPages[] = 'api-debug'; +$config->index->oldPages[] = 'execution-storykanban';