config->CRProduct) or $product->status != 'closed') and common::hasPriv('bug', 'import')) { $linkHtml = html::a($this->createLink('bug', 'import', "productID=$productID&branch=$branch"), ' ' . $lang->bug->import, '', "class='btn btn-link import'"); } $class = common::hasPriv('bug', 'exportTemplate') ? '' : "class='disabled'"; $link = common::hasPriv('bug', 'exportTemplate') ? $this->createLink('bug', 'exportTemplate', "productID=$productID&branch=$branch") : '#'; $misc = common::hasPriv('bug', 'exportTemplate') ? "class='exportTemplate'" : "class='disabled'"; $exportHtml = "
  • " . html::a($link, $lang->bug->exportTemplate, '', $misc) . '
  • '; ?>