1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<div id="bds_issue_box" 3 class="pr<?php echo $tpl->get('thread')->state == 'opened' ? 'None' : '-1' ?>"> 4 5<h1> 6 7<a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id) ?>"> 8 #<?php echo $tpl->get('thread')->id ?> 9</a> 10 11<?php if (!empty($tpl->get('thread')->label_name)): ?> 12 <?php echo $tpl->get('thread')->label_name ?> 13<?php else: ?> 14 <i style="color: #777"><?php echo $tpl->getLang('issue_type_no_specified') ?></i> 15<?php endif ?> 16 17(<?php echo $tpl->getLang('state_' . $tpl->get('thread')->state) ?>) 18</h1> 19 20<h1 id="bez_issue_title"><?php echo $tpl->get('thread')->title ?></h1> 21 22<div class="bez_timebox"> 23 <span> 24 <strong><?php echo $tpl->getLang('open') ?>:</strong> 25 <?php echo $tpl->date($tpl->get('thread')->create_date) ?> 26 </span> 27 28 29<?php if ($tpl->get('thread')->state == 'closed' || $tpl->get('thread')->state == 'rejected'): ?> 30 <span> 31 <strong><?php echo $tpl->getLang('closed') ?>:</strong> 32 <?php echo $tpl->date($tpl->get('thread')->close_date) ?> 33 </span> 34 35 <span> 36 <strong><?php echo $tpl->getLang('report_priority') ?>: </strong> 37 <?php echo $tpl->date_diff_days($tpl->get('task')->create_date, $tpl->get('task')->close_date, '%a') ?> 38 </span> 39<?php endif ?> 40</div> 41 42<table class="bez_box_data_table"> 43<tr> 44 <th><?php echo $tpl->getLang('reporter') ?>:</th> 45 <td> 46 <?php echo $tpl->user_name($tpl->get('thread')->original_poster) ?> 47 </td> 48 49 <th><?php echo $tpl->getLang('coordinator') ?>:</th> 50 <td> 51 <?php if ($tpl->get('thread')->coordinator == ''): ?> 52 <i style="font-weight: normal; color: #aaa"><?php echo $tpl->getLang('none') ?></i> 53 <?php else: ?> 54 <?php echo $tpl->user_name($tpl->get('thread')->coordinator) ?> 55 <?php endif?> 56 </td> 57</tr> 58</table> 59 60<?php echo $tpl->get('thread')->content_html ?> 61 62<div class="bez_buttons"> 63 64 <?php if (count($tpl->get('thread')->changable_fields()) > 0): ?> 65 <a href="<?php echo $tpl->url('thread_report', 'action', 'edit', 'id', $tpl->get('thread')->id) ?>" class="bds_inline_button"> 66 ✎ <?php echo $tpl->getLang('edit') ?> 67 </a> 68 <?php endif ?> 69 70 <a class="bds_inline_button" href=" 71 <?php echo $tpl->mailto($tpl->user_email($tpl->get('thread')->coordinator), 72 '#'.$tpl->get('thread')->id.' '.$tpl->get('thread')->title, 73 $tpl->url('thread', 'id', $tpl->get('thread')->id)) ?>"> 74 ✉ <?php echo $tpl->getLang('send_mail') ?> 75 </a> 76 77 <a href="<?php echo $tpl->url('8d', 'id', $tpl->get('thread')->id) ?>" class="bds_inline_button bds_report_button"> 78 ⎙ <?php echo $tpl->getLang('8d_report') ?> 79 </a> 80</div> 81 82</div> 83 84