* Finish task #8389.
This commit is contained in:
@@ -58,7 +58,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $bug->files, 'fieldset' => 'true', 'object' => $bug));?>
|
||||
<?php if(common::canBeChanged('bug', $bug)) $actionFormLink = $this->createLink('action', 'comment', "objectType=bug&objectID=$bug->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('bug', $bug);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=bug&objectID=$bug->id");
|
||||
?>
|
||||
</div>
|
||||
<?php $this->printExtendFields($bug, 'div', "position=left&inForm=0&inCell=1");?>
|
||||
<div class='cell'><?php include '../../common/view/action.html.php';?></div>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<ol class='histories-list'>
|
||||
<?php $i = 1; ?>
|
||||
<?php foreach($actions as $action):?>
|
||||
<?php $canEditComment = (isset($actionFormLink) and end($actions) == $action and strlen(trim(($action->comment))) != 0 and $this->methodName == 'view' and $action->actor == $this->app->user->account and common::hasPriv('action', 'editComment'));?>
|
||||
<?php $canEditComment = (!empty($canBeChanged) and end($actions) == $action and strlen(trim(($action->comment))) != 0 and $this->methodName == 'view' and $action->actor == $this->app->user->account and common::hasPriv('action', 'editComment'));?>
|
||||
<li value='<?php echo $i ++;?>'>
|
||||
<?php
|
||||
$action->actor = zget($users, $action->actor);
|
||||
|
||||
@@ -214,7 +214,10 @@ js::set('docID', $doc->id);
|
||||
</details>
|
||||
</div>
|
||||
<div class='cell'>
|
||||
<?php if(common::canBeChanged('doc', $doc)) $actionFormLink = $this->createLink('action', 'comment', "objectType=doc&objectID=$doc->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('doc', $doc);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=doc&objectID=$doc->id");
|
||||
?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -341,7 +341,10 @@
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
<?php if(common::canBeChanged('story', $story)) $actionFormLink = $this->createLink('action', 'comment', "objectType=story&objectID=$story->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('story', $story);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=story&objectID=$story->id");
|
||||
?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<script>
|
||||
<?php if(isset($pageJS)) echo $pageJS;?>
|
||||
|
||||
@@ -79,7 +79,10 @@
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true', 'object' => $task));?>
|
||||
<?php if(common::canBeChanged('task', $task)) $actionFormLink = $this->createLink('action', 'comment', "objectType=task&objectID=$task->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('task', $task);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=task&objectID=$task->id");
|
||||
?>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<script>
|
||||
<?php if(isset($pageJS)) echo $pageJS;?>
|
||||
|
||||
@@ -65,7 +65,10 @@
|
||||
<div class="detail-content article-content"><?php echo $story->verify;?></div>
|
||||
</div>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $story->files, 'fieldset' => 'true', 'object' => $story));?>
|
||||
<?php if(common::canBeChanged('story', $story)) $actionFormLink = $this->createLink('action', 'comment', "objectType=story&objectID=$story->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('story', $story);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=story&objectID=$story->id");
|
||||
?>
|
||||
<?php if(!empty($story->children)):?>
|
||||
<div class='detail'>
|
||||
<div class='detail-title'><?php echo $this->lang->story->children;?></div>
|
||||
|
||||
@@ -142,8 +142,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true', 'object' => $task));?>
|
||||
<?php if(common::canBeChanged('task', $task)) $actionFormLink = $this->createLink('action', 'comment', "objectType=task&objectID=$task->id");?>
|
||||
<?php
|
||||
echo $this->fetch('file', 'printFiles', array('files' => $task->files, 'fieldset' => 'true', 'object' => $task));
|
||||
|
||||
$canBeChanged = common::canBeChanged('task', $task);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=task&objectID=$task->id");
|
||||
?>
|
||||
</div>
|
||||
<?php $this->printExtendFields($task, 'div', "position=left&inForm=0&inCell=1");?>
|
||||
<div class="cell"><?php include '../../common/view/action.html.php';?></div>
|
||||
|
||||
@@ -39,7 +39,10 @@
|
||||
<div class="detail-content article-content"><?php echo $task->report;?></div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if(common::canBeChanged('testtask', $task)) $actionFormLink = $this->createLink('action', 'comment', "objectType=testtask&objectID=$task->id");?>
|
||||
<?php
|
||||
$canBeChanged = common::canBeChanged('testtask', $task);
|
||||
if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=testtask&objectID=$task->id");
|
||||
?>
|
||||
</div>
|
||||
<?php $this->printExtendFields($task, 'div', "position=left&inForm=0&inCell=1");?>
|
||||
<div class='cell'><?php include '../../common/view/action.html.php';?></div>
|
||||
|
||||
Reference in New Issue
Block a user