Lines Matching refs:tpl

1 <?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?>
6 <?php if ($tpl->param('action') == '' && $tpl->get('thread')->user_is_coordinator() && $tpl->get('thread')->can_add_tasks()): ?>
8 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 'task_add') ?>#z_" class="bez_subscribe_button">
9 <span class="bez_awesome">&#xf0fe;</span>&nbsp;&nbsp;<?php echo $tpl->getLang('correction_add' . $tpl->get('lang_suffix')) ?>
14 <?php foreach ($tpl->get('timeline') as $entity): ?>
16 <?php $tpl->set('thread_comment', $entity) ?>
17 <?php if ( $tpl->param('action') == 'commcause_edit' &&
18 $tpl->param('kid') == $entity->id): ?>
25 <?php $tpl->set('task', $entity) ?>
26 <?php if ( $tpl->param('action') == 'task_edit' &&
27 $tpl->param('tid') == $entity->id): ?>
35 <?php if ($tpl->param('action') == 'task_add' && $tpl->param('kid') == ''): ?>
37 <?php $tpl->set('task', $tpl->get('task_new')) ?>
39 <?php elseif ($tpl->get('thread')->state == 'closed'): ?>
44 <?php printf($tpl->getLang('user_closed_issue'),
45 '<strong>' . $tpl->user_name($tpl->get('thread')->closed_by) . '</strong>',
46 $tpl->date_fuzzy_age($tpl->get('thread')->close_date)) ?>
48 <?php elseif ($tpl->get('thread')->state == 'rejected'): ?>
53 <?php printf($tpl->getLang('user_rejected_issue'),
54 '<strong>' . $tpl->user_name($tpl->get('thread')->closed_by) . '</strong>',
55 $tpl->date_fuzzy_age($tpl->get('thread')->close_date)) ?>
60 <?php if ( !(strpos($tpl->param('action'), 'task') === 0) &&
61 $tpl->param('action') != 'commcause_edit' &&
62 !(in_array($tpl->get('thread')->state, array('closed', 'rejected')) &&
63 $tpl->get('thread')->acl_of('state') < BEZ_PERMISSION_CHANGE)): ?>
68 <?php if ($tpl->get('thread')->count_opened_nopreventive_tasks() > 0): ?>
69 <div class="info"><?php echo $tpl->getLang('issue_unclosed_tasks' . $tpl->get('lang_suffix')) ?></div>
71 <?php if ($tpl->get('thread')->state == 'proposal'): ?>
72 <div class="info"><?php echo $tpl->getLang('issue_is_proposal' . $tpl->get('lang_suffix')) ?></div>
74 <?php if ($tpl->get('causes_without_tasks')): ?>
75 <div class="info"><?php echo $tpl->getLang('cause_without_task') ?></div>
77 <?php if ($tpl->get('thread')->state == 'opened' && $tpl->get('thread')->task_count == 0): ?>
78 <div class="info"><?php echo $tpl->getLang('issue_no_tasks' . $tpl->get('lang_suffix')) ?></div>
87 <h2><?php echo $tpl->getLang('comment_last_activity') ?></h2>
89 <?php echo $tpl->datetime($tpl->get('thread')->last_activity_date) ?>
95 <h2><?php echo $tpl->getLang('norifications') ?></h2>
96 <?php if ($tpl->get('thread')->is_subscribent()): ?>
97 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 'unsubscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome">&#xf1f6;</span>&nbsp;&nbsp;<?php echo $tpl->getLang('unsubscribe') ?></a>
98 <p><?php echo $tpl->getLang('subscribed_info' . $tpl->get('lang_suffix')) ?></p>
100 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 'subscribe') ?>" class="bez_subscribe_button"><span class="bez_awesome">&#xf0f3;</span>&nbsp;&nbsp;<?php echo $tpl->getLang('subscribe') ?></a>
101 <p><?php echo $tpl->getLang('not_subscribed_info' . $tpl->get('lang_suffix')) ?></p>
107 <h2><?php echo $tpl->getLang('comment_participants') ?></h2>
109 <?php foreach ($tpl->get('thread')->get_participants() as $participant): ?>
111 <?php if ($tpl->get('thread')->user_is_coordinator() &&
112 $tpl->get('thread')->can_add_participants() &&
114 <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 'participant_remove', 'user_id', $participant['user_id']) ?>"
121 <a href="<?php echo $tpl->mailto($tpl->user_email($participant['user_id']),
122 '#'.$tpl->get('thread')->id.' '.$tpl->get('thread')->title,
123 $tpl->url('thread', 'id', $tpl->get('thread')->id)) ?>" title="<?php echo $participant['user_id'] ?>">
124 <span class="bez_name"><?php echo $tpl->user_name($participant['user_id']) ?></span>
128 title="<?php echo $tpl->getLang('reporter') ?>">
134 title="<?php echo $tpl->getLang('coordinator') ?>">
140 title="<?php echo $tpl->getLang('executor') ?>">
146 title="<?php echo $tpl->getLang('commentator') ?>">
152 title="<?php echo $tpl->getLang('subscribent') ?>">
162 <?php if ( $tpl->get('thread')->user_is_coordinator() &&
163 $tpl->get('thread')->can_add_participants()): ?>
164 <h2><?php echo $tpl->getLang('issue_invite_header') ?></h2>
165 <form action="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', 'invite') ?>" method="post" id="bez_invite_users_form">
168 <option value="">--- <?php echo $tpl->getLang('select') ?> ---</option>
169 <?php foreach (array_diff_key($tpl->get('users'), $tpl->get('thread')->get_participants('subscribent')) as $user_id => $ignore): ?>
170 <option value="<?php echo $user_id ?>"><?php echo $tpl->user_name($user_id) ?></option>
174 <button class="bez_subscribe_button"><?php echo $tpl->getLang('issue_invite_button') ?></button>