From 7cb74a61584ce3b5050a89231249204c66969d2c Mon Sep 17 00:00:00 2001
From: holan20180123 <56391770@qq.com>
Date: Thu, 27 Aug 2020 14:06:35 +0800
Subject: [PATCH] * Finish task #7711.
---
module/user/view/featurebar.html.php | 51 ++++++++++------------------
1 file changed, 18 insertions(+), 33 deletions(-)
diff --git a/module/user/view/featurebar.html.php b/module/user/view/featurebar.html.php
index 201aaa0115..33c32174f6 100755
--- a/module/user/view/featurebar.html.php
+++ b/module/user/view/featurebar.html.php
@@ -8,48 +8,33 @@
$methodName = $this->app->getMethodName();
- if($config->global->flow == 'full')
- {
- $label = "{$lang->user->schedule}";
- $active = $methodName == 'todo' ? ' btn-active-text' : '';
- common::printLink('user', 'todo', "account=$account", $label, '', "class='btn btn-link $active'");
- }
+ $label = "{$lang->user->schedule}";
+ $active = $methodName == 'todo' ? ' btn-active-text' : '';
+ common::printLink('user', 'todo', "account=$account", $label, '', "class='btn btn-link $active'");
- if($config->global->flow != 'onlyTask' and $config->global->flow != 'onlyTest')
- {
- $label = "{$lang->user->story}";
- $active = $methodName == 'story' ? ' btn-active-text' : '';
- common::printLink('user', 'story', "account=$account", $label, '', "class='btn btn-link $active'");
- }
+ $label = "{$lang->user->story}";
+ $active = $methodName == 'story' ? ' btn-active-text' : '';
+ common::printLink('user', 'story', "account=$account", $label, '', "class='btn btn-link $active'");
- if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
- {
- $label = "{$lang->user->task}";
- $active = $methodName == 'task' ? ' btn-active-text' : '';
- common::printLink('user', 'task', "account=$account", $label, '', "class='btn btn-link $active'");
- }
+ $label = "{$lang->user->task}";
+ $active = $methodName == 'task' ? ' btn-active-text' : '';
+ common::printLink('user', 'task', "account=$account", $label, '', "class='btn btn-link $active'");
- if($config->global->flow == 'full' or $config->global->flow == 'onlyTest')
- {
- $label = "{$lang->user->bug}";
- $active = $methodName == 'bug' ? ' btn-active-text' : '';
- common::printLink('user', 'bug', "account=$account", $label, '', "class='btn btn-link $active'");
+ $label = "{$lang->user->bug}";
+ $active = $methodName == 'bug' ? ' btn-active-text' : '';
+ common::printLink('user', 'bug', "account=$account", $label, '', "class='btn btn-link $active'");
- $label = "{$lang->user->test}";
- $active = ($methodName == 'testtask' or $methodName == 'testcase')? ' btn-active-text' : '';
- common::printLink('user', 'testtask', "account=$account", $label, '', "class='btn btn-link $active'");
- }
+ $label = "{$lang->user->test}";
+ $active = ($methodName == 'testtask' or $methodName == 'testcase')? ' btn-active-text' : '';
+ common::printLink('user', 'testtask', "account=$account", $label, '', "class='btn btn-link $active'");
$label = "{$lang->user->dynamic}";
$active = $methodName == 'dynamic' ? ' btn-active-text' : '';
common::printLink('user', 'dynamic', "type=today&account=$account", $label, '', "class='btn btn-link $active'");
- if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
- {
- $label = "{$lang->user->project}";
- $active = $methodName == 'project' ? ' btn-active-text' : '';
- common::printLink('user', 'project', "account=$account", $label, '', "class='btn btn-link $active'");
- }
+ $label = "{$lang->user->project}";
+ $active = $methodName == 'project' ? ' btn-active-text' : '';
+ common::printLink('user', 'project', "account=$account", $label, '', "class='btn btn-link $active'");
$label = "{$lang->user->profile}";
$active = $methodName == 'profile' ? ' btn-active-text' : '';