1 2<?php if ($tpl->get('task')->thread != null): ?> 3 <div id="bds_issue_box" class="pr<?php echo $tpl->get('task')->thread->priority ?>"> 4 <div> 5 <strong><?php echo $tpl->getLang('issue') ?>:</strong> 6 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('task')->thread->id) ?>"> 7 #<?php echo $tpl->get('task')->thread->id ?> 8 </a> 9 <strong> 10 <?php if (!empty($tpl->get('task')->thread->label_name)): ?> 11 <?php echo $tpl->get('task')->thread->label_name ?> 12 <?php else: ?> 13 <i style="color: #777"><?php echo $tpl->getLang('issue_type_no_specified') ?></i> 14 <?php endif ?> 15 16 (<?php echo $tpl->getLang('state_' . $tpl->get('task')->thread->state) ?>): 17 </strong> 18 <?php echo $tpl->get('task')->thread->title ?> 19 </div> 20 21 <?php if ($tpl->get('task')->thread_comment != null): ?> 22 <div style="margin-top: 12px;"> 23 <h2> 24 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('task')->thread->id) ?>#k<?php echo $tpl->get('task')->thread_comment->id ?>"> 25 #k<?php echo $tpl->get('task')->thread_comment->id ?> 26 </a> 27 <?php echo ucfirst($tpl->getLang('cause')) ?> 28 (<?php echo $tpl->getLang($tpl->get('task')->thread_comment->type) ?>) 29 </h2> 30 <?php echo $tpl->get('task')->thread_comment->content_html ?> 31 </div> 32 <?php endif ?> 33 </div> 34 35 36 <br> 37<?php endif ?> 38 39<?php if ( $tpl->param('action') == 'task_edit' && 40 $tpl->param('tid') == $tpl->get('task')->id): ?> 41 <?php include 'task_form.php' ?> 42<?php else: ?> 43 <?php include 'task_box.php' ?> 44<?php endif ?> 45 46<br> 47<div class="bez_comments"> 48 <div class="bez_left_col"> 49 <?php foreach ($tpl->get('task_comments') as $task_comment): ?> 50 <?php $tpl->set('task_comment', $task_comment) ?> 51 <?php if ( $tpl->param('action') == 'comment_edit' && 52 $tpl->param('zkid') == $task_comment->id): ?> 53 <?php include 'task_comment_form.php' ?> 54 <?php else: ?> 55 <?php include 'task_comment_box.php' ?> 56 <?php endif ?> 57 <?php endforeach ?> 58 59 <?php if ($tpl->get('task')->state == 'done'): ?> 60 <div class="plugin__bez_status_label"> 61 <span class="icon icon_green"> 62 <?php echo inlineSVG(DOKU_PLUGIN . 'bez/images/tick.svg') ?> 63 </span> 64 <?php printf($tpl->getLang('user_did_task'), 65 '<strong>' . $tpl->user_name($tpl->get('task')->closed_by) . '</strong>', 66 dformat(strtotime($tpl->get('task')->close_date), '%f')) ?> 67 </div> 68 <?php endif ?> 69 70 <?php if ($tpl->get('task')->thread->state == 'opened' && 71 $tpl->param('action') != 'task_edit' && 72 $tpl->param('action') != 'comment_edit'): ?> 73 <?php include 'task_comment_form.php' ?> 74 <?php endif ?> 75 76 </div> 77 78<div class="bez_right_col" style="position:relative; top: -15px;"> 79 80 <div class="bez_box bez_subscribe_box"> 81 <h2><?php echo $tpl->getLang('norifications') ?></h2> 82 <?php if ($tpl->get('task')->is_subscribent()): ?> 83 <a href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'unsubscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome"></span> <?php echo $tpl->getLang('unsubscribe') ?></a> 84 <p><?php echo $tpl->getLang('task_subscribed_info') ?></p> 85 <?php else: ?> 86 <a href="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'subscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome"></span> <?php echo $tpl->getLang('subscribe') ?></a> 87 <p><?php echo $tpl->getLang('task_not_subscribed_info') ?></p> 88 <?php endif ?> 89 90 </div> 91 92 <div class="bez_box"> 93 <h2><?php echo $tpl->getLang('comment_participants') ?></h2> 94 <ul id="issue_participants"> 95 <?php foreach ($tpl->get('task')->get_participants() as $participant): ?> 96 <li><a href="<?php echo $tpl->mailto($tpl->user_email($participant['user_id']), 97 '#z'.$tpl->get('task')->id, 98 $tpl->url('task', 'tid', $tpl->get('task')->id)) ?>" 99 title="<?php echo $participant['user_id'] ?>"> 100 <span class="bez_name"><?php echo $tpl->user_name($participant['user_id']) ?></span> 101 <span class="bez_icons"> 102 <?php if($participant['original_poster']): ?> 103 <span class="bez_awesome" 104 title="<?php echo $tpl->getLang('reporter') ?>"> 105  106 </span> 107 <?php endif ?> 108 <?php if($participant['assignee']): ?> 109 <span class="bez_awesome" 110 title="<?php echo $tpl->getLang('executor') ?>"> 111  112 </span> 113 <?php endif ?> 114 <?php if($participant['commentator']): ?> 115 <span class="bez_awesome" 116 title="<?php echo $tpl->getLang('commentator') ?>"> 117  118 </span> 119 <?php endif ?> 120 <?php if($participant['subscribent']): ?> 121 <span class="bez_awesome" 122 title="<?php echo $tpl->getLang('subscribent') ?>"> 123  124 </span> 125 <?php endif ?> 126 </span> 127 </a></li> 128 <?php endforeach ?> 129 </ul> 130 131 <?php if ($tpl->get('task')->acl_of('participants') >= BEZ_PERMISSION_CHANGE): ?> 132 <h2><?php echo $tpl->getLang('issue_invite_header') ?></h2> 133 <form action="<?php echo $tpl->url('task', 'tid', $tpl->get('task')->id, 'action', 'invite') ?>" method="post" id="bez_invite_users_form"> 134 <div id="bez_invite_users" class="ui-widget"> 135 <select name="client"> 136 <option value="">--- <?php echo $tpl->getLang('select') ?> ---</option> 137 <?php foreach (array_diff_key($tpl->get('users'), $tpl->get('task')->get_participants('subscribent')) as $user_id => $ignore): ?> 138 <option value="<?php echo $user_id ?>"><?php echo $tpl->user_name($user_id) ?></option> 139 <?php endforeach ?> 140 </select> 141 </div> 142 <button class="bez_subscribe_button"><?php echo $tpl->getLang('issue_invite_button') ?></button> 143 </form> 144 <?php endif ?> 145 146 147 </div> 148 149 150</div> 151 152</div> 153 154