1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<div id="bds_issue_box" 3 class="pr<?php echo $tpl->get('thread')->priority ?>"> 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 dformat(strtotime($tpl->get('thread')->create_date), '%Y-%m-%d') ?> 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 dformat(strtotime($tpl->get('thread')->close_date), '%Y-%m-%d') ?> 33 </span> 34 35 <span> 36 <strong><?php echo $tpl->getLang('report_priority') ?>: </strong> 37 <?php $dStart = new DateTime($tpl->get('thread')->create_date) ?> 38 <?php $dEnd = new DateTime($tpl->get('thread')->close_date) ?> 39 <?php echo $dStart->diff($dEnd)->days ?> <?php echo $tpl->getLang('days') ?> 40 </span> 41<?php endif ?> 42</div> 43 44<table class="bez_box_data_table"> 45<tr> 46 <th><?php echo $tpl->getLang('reporter') ?>:</th> 47 <td> 48 <?php echo $tpl->user_name($tpl->get('thread')->original_poster) ?> 49 </td> 50 51 <th><?php echo $tpl->getLang('coordinator') ?>:</th> 52 <td> 53 <?php if ($tpl->get('thread')->coordinator == ''): ?> 54 <i style="font-weight: normal; color: #aaa"><?php echo $tpl->getLang('none') ?></i> 55 <?php else: ?> 56 <?php echo $tpl->user_name($tpl->get('thread')->coordinator) ?> 57 <?php endif?> 58 </td> 59</tr> 60</table> 61 62<?php echo $tpl->get('thread')->content_html ?> 63 64<div class="bez_buttons"> 65 66 <?php if (count($tpl->get('thread')->changable_fields()) > 0): ?> 67 <a href="<?php echo $tpl->url('thread_report', 'action', 'edit', 'id', $tpl->get('thread')->id) ?>" class="bds_inline_button"> 68 ✎ <?php echo $tpl->getLang('edit') ?> 69 </a> 70 <?php endif ?> 71 72 <a class="bds_inline_button" href=" 73 <?php echo $tpl->mailto($tpl->user_email($tpl->get('thread')->coordinator), 74 '#'.$tpl->get('thread')->id.' '.$tpl->get('thread')->title, 75 $tpl->url('thread', 'id', $tpl->get('thread')->id)) ?>"> 76 ✉ <?php echo $tpl->getLang('send_mail') ?> 77 </a> 78 79 <a href="<?php echo $tpl->url('8d', 'id', $tpl->get('thread')->id) ?>" class="bds_inline_button bds_report_button"> 80 ⎙ <?php echo $tpl->getLang('8d_report') ?> 81 </a> 82</div> 83 84</div> 85 86