* Adjust the modal size.
* Adjust codes.
This commit is contained in:
@@ -47,6 +47,7 @@ $config->testtask->actionList['view']['text'] = $lang->testtask->view;
|
||||
$config->testtask->actionList['view']['hint'] = $lang->testtask->view;
|
||||
$config->testtask->actionList['view']['url'] = array('module' => 'testtask', 'method' => 'view', 'params' => 'taskID={id}');
|
||||
$config->testtask->actionList['view']['data-toggle'] = 'modal';
|
||||
$config->testtask->actionList['view']['data-size'] = 'lg';
|
||||
|
||||
$config->testtask->actionList['edit']['icon'] = 'edit';
|
||||
$config->testtask->actionList['edit']['text'] = $lang->testtask->edit;
|
||||
|
||||
@@ -23,10 +23,10 @@ detailHeader
|
||||
),
|
||||
);
|
||||
|
||||
$taskBuild = a
|
||||
$taskBuild = array
|
||||
(
|
||||
set('href', createLink('build', 'view', "buildID=$task->build")),
|
||||
$task->buildName
|
||||
'text' => $task->buildName,
|
||||
'url' => createLink('build', 'view', "buildID=$task->build"),
|
||||
);
|
||||
if($isInModal) $taskBuild = $task->buildName;
|
||||
if($task->build == 'trunk') $taskBuild = $lang->trunk;
|
||||
@@ -40,12 +40,6 @@ if($task->mailto)
|
||||
foreach(explode(',', str_replace(' ', '', $task->mailto)) as $account) $mailto .= zget($users, $account, $account);
|
||||
}
|
||||
|
||||
$testReport = !empty($task->testreport) ? a
|
||||
(
|
||||
set('href', createLink('testreport', 'view', "reportID=$task->testreport")),
|
||||
$testreportTitle
|
||||
) : '';
|
||||
|
||||
$actionList = array();
|
||||
$actionCodes = explode(',', $config->testtask->actions->view);
|
||||
foreach($actionCodes as $actionCode)
|
||||
@@ -124,7 +118,7 @@ detailBody
|
||||
item
|
||||
(
|
||||
set::name($lang->testtask->build),
|
||||
$taskBuild
|
||||
item(set($taskBuild)),
|
||||
),
|
||||
item
|
||||
(
|
||||
@@ -169,11 +163,15 @@ detailBody
|
||||
item
|
||||
(
|
||||
set::name($lang->testtask->testreport),
|
||||
$testReport
|
||||
!empty($task->testreport) ? a
|
||||
(
|
||||
set('href', createLink('testreport', 'view', "reportID=$task->testreport")),
|
||||
$testreportTitle
|
||||
) : null,
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
render($isInModal ? 'modalDialog' : 'page');
|
||||
|
||||
Reference in New Issue
Block a user