* finish for costom zentao type.
This commit is contained in:
@@ -199,7 +199,7 @@ class helper
|
||||
{
|
||||
die("ERROR: $mergedModelFile not writable, please make sur the " . dirname($mergedModelFile) . ' directory exists and writable');
|
||||
}
|
||||
include $mergedModelFile;
|
||||
if(!class_exists($extTmpModelClass))include $mergedModelFile;
|
||||
|
||||
/* Get hook codes need to merge. */
|
||||
$hookCodes = array();
|
||||
|
||||
@@ -32,7 +32,15 @@ class index extends control
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->locate($this->createLink('my', 'index'));
|
||||
if(isset($this->app->config->index->softType) or strpos($this->config->version, 'pro') !== false or strpos($this->app->company->admins, ",{$this->app->user->account},") === false) $this->locate($this->createLink('my', 'index'));
|
||||
|
||||
if($_POST)
|
||||
{
|
||||
$this->loadModel('setting')->setItem('system', 'index', '', 'softType', $this->post->softType);
|
||||
if($this->post->softType != 'all') die(js::locate($this->createLink('extension', 'install', "extension={$this->post->softType}"), 'parent'));
|
||||
die(js::locate($this->createLink('my', 'index'), 'parent'));
|
||||
}
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
<?php
|
||||
$lang->index->common = 'Index';
|
||||
$lang->index->index = 'Index';
|
||||
|
||||
$lang->index->selectSoftType = '请选择禅道使用方式';
|
||||
|
||||
$lang->index->softType['all'] = '全生命周期管理(禅道完全功能)';
|
||||
$lang->index->softType['zentaotest'] = '测试管理(禅道测试管理扩展,去掉了需求、任务管理,只保留bug管理、用例管理和测试任务管理,可以只用作测试跟踪)';
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
$lang->index->common = '首页';
|
||||
$lang->index->index = '首页';
|
||||
|
||||
$lang->index->selectSoftType = '请选择禅道使用方式';
|
||||
|
||||
$lang->index->softType['all'] = '全生命周期管理(禅道完全功能)';
|
||||
$lang->index->softType['zentaotest'] = '测试管理(禅道测试管理扩展,去掉了需求、任务管理,只保留bug管理、用例管理和测试任务管理,可以只用作测试跟踪)';
|
||||
$lang->index->softType['zentaotask'] = '任务管理(禅道任务管理扩展,去掉了需求、测试管理,只保留任务管理,可以只用作简单任务跟踪)';
|
||||
$lang->index->softType['zentaostory'] = '需求管理(禅道需求管理扩展,去掉了任务、测试管理,只保留需求管理,可以只用作需求整理)';
|
||||
|
||||
Reference in New Issue
Block a user