view.ipd.html.hook.php 468 B

12345678910111213141516
  1. <?php
  2. namespace zin;
  3. $context = \zin\context();
  4. extract($context->data);
  5. global $config;
  6. /* IPD研发界面查看OR界面的业用需求,OR界面查看研发需求,隐藏页面所有链接/操作按钮。 */
  7. if(($config->vision != 'or' && $story->vision == 'or') || ($story->type == 'story' && $config->vision == 'or'))
  8. {
  9. query('.detail-actions')->remove();
  10. query('#linkButton')->remove();
  11. query('.tab-content')->find('a')->addClass('disabled');
  12. }