diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 3e4629681a..a3f750957b 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -44,6 +44,20 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project); createLink('bug', 'view', "bugID=$bug->id"), $bug->title, '', "class='bug-title' title='$bug->title'");?> arrow . ' ' . $lang->bug->edit;?> + + app->loadLang('ai'); + $prompt = $_SESSION['aiPrompt']['prompt']; + $objectId = $_SESSION['aiPrompt']['objectId']; + $isAudit = isset($_SESSION['auditPrompt']) && time() - $_SESSION['auditPrompt']['time'] < 10 * 60; + ?> +
+ id&objectId=$objectId"), ' ' . $lang->ai->audit->regenerate, '', 'id="promptRegenerate" class="btn btn-link"');?> + + id&objectId=$objectId"), $lang->ai->audit->designPrompt, '', 'id="promptAudit" class="btn btn-info iframe"'); ?> + +
+
@@ -82,11 +96,15 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
- lastEditedDate); - echo html::submitButton(); - echo html::backButton(); - ?> + status == 'draft'): ?> + ai->prompts->action->publish, "id='promptPublish' data-promptId=$prompt->id", 'btn btn-primary btn-wide'); ?> + + lastEditedDate); + echo html::submitButton(); + echo html::backButton(); + ?> +