* Adjust some view file of user module.
This commit is contained in:
@@ -2,47 +2,58 @@
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php
|
||||
if(!isset($type)) $type = 'today';
|
||||
if(!isset($period)) $period = 'today';
|
||||
$date = isset($date) ? $date : helper::today();
|
||||
|
||||
echo "<li class='w-150px'>" . $userList . '</li>';
|
||||
echo "<div class='input-control space w-150px'>" . $userList . "</div>";
|
||||
|
||||
$methodName = $this->app->getMethodName();
|
||||
|
||||
if($config->global->flow == 'full')
|
||||
{
|
||||
$label = "<span class='text'>{$lang->user->todo}</span>";
|
||||
echo html::a($this->createLink('user', 'todo', "account=$account"), $label);
|
||||
$active = $methodName == 'todo' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'todo', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
|
||||
if($config->global->flow != 'onlyTask' and $config->global->flow != 'onlyTest')
|
||||
{
|
||||
echo html::a($this->createLink('user', 'story', "account=$account"), $lang->user->story);
|
||||
$label = "<span class='text'>{$lang->user->story}</span>";
|
||||
$active = $methodName == 'story' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'story', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
|
||||
if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
|
||||
{
|
||||
echo html::a($this->createLink('user', 'task', "account=$account"), $lang->user->task);
|
||||
$label = "<span class='text'>{$lang->user->task}</span>";
|
||||
$active = $methodName == 'task' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'task', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
|
||||
if($config->global->flow == 'full' or $config->global->flow == 'onlyTest')
|
||||
{
|
||||
echo html::a($this->createLink('user', 'bug', "account=$account"), $lang->user->bug);
|
||||
echo html::a($this->createLink('user', 'testtask', "account=$account"), $lang->user->test);
|
||||
$label = "<span class='text'>{$lang->user->bug}</span>";
|
||||
$active = $methodName == 'bug' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'bug', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
|
||||
$label = "<span class='text'>{$lang->user->test}</span>";
|
||||
$active = $methodName == 'testtask' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'testtask', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
echo html::a($this->createLink('user', 'dynamic', "type=today&account=$account"), $lang->user->dynamic);
|
||||
|
||||
$label = "<span class='text'>{$lang->user->dynamic}</span>";
|
||||
$active = $methodName == 'dynamic' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'dynamic', "type=today&account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
|
||||
if($config->global->flow == 'full' or $config->global->flow == 'onlyTask')
|
||||
{
|
||||
echo html::a($this->createLink('user', 'project', "account=$account"), $lang->user->project);
|
||||
$label = "<span class='text'>{$lang->user->project}</span>";
|
||||
$active = $methodName == 'project' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'project', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
}
|
||||
echo html::a($this->createLink('user', 'profile', "account=$account"), $lang->user->profile);
|
||||
|
||||
$activedSpan = $this->app->getMethodName() . 'Tab';
|
||||
echo "<script>$('#$activedSpan').addClass('active')</script>";
|
||||
$label = "<span class='text'>{$lang->user->profile}</span>";
|
||||
$active = $methodName == 'profile' ? ' btn-active-text' : '';
|
||||
echo html::a($this->createLink('user', 'profile', "account=$account"), $label, '', "class='btn btn-link $active'");
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var type = '<?php echo $type;?>';
|
||||
var period = '<?php echo $period;?>';
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user