* add link when export to html.
This commit is contained in:
@@ -158,6 +158,33 @@ class file extends control
|
||||
{
|
||||
$this->view->fields = $this->post->fields;
|
||||
$this->view->rows = $this->post->rows;
|
||||
switch($this->post->kind)
|
||||
{
|
||||
case 'task':
|
||||
foreach($this->view->rows as $row)
|
||||
{
|
||||
$row->name = html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('task', 'view', "taskID=$row->id"), $row->name);
|
||||
}
|
||||
break;
|
||||
case 'story':
|
||||
foreach($this->view->rows as $row)
|
||||
{
|
||||
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('story', 'view', "storyID=$row->id"), $row->title);
|
||||
}
|
||||
break;
|
||||
case 'bug':
|
||||
foreach($this->view->rows as $row)
|
||||
{
|
||||
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('bug', 'view', "bugID=$row->id"), $row->title);
|
||||
}
|
||||
break;
|
||||
case 'testcase':
|
||||
foreach($this->view->rows as $row)
|
||||
{
|
||||
$row->title= html::a('http://' . $_SERVER['HTTP_HOST'] . $this->createLink('testcase', 'view', "caseID=$row->id"), $row->title);
|
||||
}
|
||||
break;
|
||||
}
|
||||
$this->view->fileName = $this->post->fileName;
|
||||
$output = $this->parse('file', 'export2Html');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user