Improve board tooltips
This commit is contained in:
@@ -730,7 +730,7 @@ return array(
|
||||
'Time spent changed: %sh' => 'Utrošeno vrijeme je promijenjeno: %sh',
|
||||
'Time estimated changed: %sh' => 'Očekivano vrijeme je promijenjeno: %sh',
|
||||
'The field "%s" have been updated' => 'Polje "%s" je ažurirano',
|
||||
'The description has been modified:' => 'Promijenjen opis',
|
||||
'The description has been modified:' => 'Promijenjen opis:',
|
||||
'Do you really want to close the task "%s" as well as all subtasks?' => 'Da li zaista želiš zatvoriti zadatak "%s" kao i sve pod-zadatke?',
|
||||
'I want to receive notifications for:' => 'Želim dobijati obavještenja za:',
|
||||
'All tasks' => 'Sve zadatke',
|
||||
|
||||
@@ -730,7 +730,7 @@ return array(
|
||||
'Time spent changed: %sh' => 'Verbrauchte Zeit geändert: %sh',
|
||||
'Time estimated changed: %sh' => 'Geschätzte Zeit geändert: %sh',
|
||||
'The field "%s" have been updated' => 'Das Feld "%s" wurde verändert',
|
||||
'The description has been modified:' => 'Die Beschreibung wurde geändert',
|
||||
'The description has been modified:' => 'Die Beschreibung wurde geändert:',
|
||||
'Do you really want to close the task "%s" as well as all subtasks?' => 'Soll die Aufgabe "%s" wirklich geschlossen werden? (einschließlich Teilaufgaben)',
|
||||
'I want to receive notifications for:' => 'Chci dostávat upozornění na:',
|
||||
'All tasks' => 'Všechny úkoly',
|
||||
|
||||
@@ -730,7 +730,7 @@ return array(
|
||||
'Time spent changed: %sh' => 'Verbrauchte Zeit geändert: %sh',
|
||||
'Time estimated changed: %sh' => 'Geschätzte Zeit geändert: %sh',
|
||||
'The field "%s" have been updated' => 'Das Feld "%s" wurde verändert',
|
||||
'The description has been modified:' => 'Die Beschreibung wurde geändert',
|
||||
'The description has been modified:' => 'Die Beschreibung wurde geändert:',
|
||||
'Do you really want to close the task "%s" as well as all subtasks?' => 'Soll die Aufgabe "%s" wirklich geschlossen werden? (einschließlich Teilaufgaben)',
|
||||
'I want to receive notifications for:' => 'Ich möchte Benachrichtigungen erhalten für:',
|
||||
'All tasks' => 'Alle Aufgaben',
|
||||
|
||||
@@ -39,6 +39,13 @@
|
||||
<?php endif ?>
|
||||
|
||||
<div class="task-board-icons">
|
||||
<?php if ($task['score']): ?>
|
||||
<span class="task-score" title="<?= t('Complexity') ?>">
|
||||
<i class="fa fa-trophy"></i>
|
||||
<?= $this->text->e($task['score']) ?>
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($task['date_due'])): ?>
|
||||
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
|
||||
<i class="fa fa-calendar"></i>
|
||||
@@ -80,10 +87,6 @@
|
||||
</span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($task['score']): ?>
|
||||
<span class="task-score"><?= $this->text->e($task['score']) ?></span>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! empty($task['time_estimated'])): ?>
|
||||
<span class="task-time-estimated" title="<?= t('Time estimated') ?>"><?= $this->text->e($task['time_estimated']).'h' ?></span>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="comment-tooltip">
|
||||
<div class="tooltip-large">
|
||||
<?php foreach ($comments as $comment): ?>
|
||||
<?= $this->render('comment/show', array(
|
||||
'comment' => $comment,
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
<table class="table-striped table-small">
|
||||
<tr>
|
||||
<th class="column-20"><?= t('Type') ?></th>
|
||||
<th class="column-80"><?= t('Title') ?></th>
|
||||
<th class="column-10"><?= t('Dependency') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($links as $link): ?>
|
||||
<div class="tooltip-large">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $link['type'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= $link['url'] ?>" target="_blank"><?= $this->text->e($link['title']) ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->text->e($link['dependency_label']) ?>
|
||||
</td>
|
||||
<th class="column-20"><?= t('Type') ?></th>
|
||||
<th class="column-70"><?= t('Title') ?></th>
|
||||
<th class="column-10"><?= t('Dependency') ?></th>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<?php foreach ($links as $link): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $link['type'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= $link['url'] ?>" target="_blank"><?= $this->text->e($link['title']) ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?= $this->text->e($link['dependency_label']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
<table class="table-small">
|
||||
<?php foreach ($files as $file): ?>
|
||||
<tr>
|
||||
<th>
|
||||
<i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
|
||||
<?= $this->text->e($file['name']) ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="fa fa-download fa-fw"></i><?= $this->url->link(t('download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
|
||||
<?php if ($file['is_image'] == 1): ?>
|
||||
<i class="fa fa-eye"></i> <?= $this->url->link(t('open file'), 'FileViewer', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<div class="tooltip-large">
|
||||
<table>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<tr>
|
||||
<th>
|
||||
<i class="fa <?= $this->file->icon($file['name']) ?> fa-fw"></i>
|
||||
<?= $this->text->e($file['name']) ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="fa fa-download fa-fw"></i><?= $this->url->link(t('download'), 'FileViewer', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
|
||||
<?php if ($file['is_image'] == 1): ?>
|
||||
<i class="fa fa-eye"></i> <?= $this->url->link(t('open file'), 'FileViewer', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,22 @@
|
||||
<table class="table-stripped">
|
||||
<?php foreach ($subtasks as $subtask): ?>
|
||||
<tr>
|
||||
<td class="column-80">
|
||||
<?= $this->subtask->toggleStatus($subtask, $task['project_id']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (! empty($subtask['username'])): ?>
|
||||
<div class="tooltip-large">
|
||||
<table>
|
||||
<tr>
|
||||
<th class="column-80"><?= t('Subtask') ?></th>
|
||||
<th><?= t('Assignee') ?></th>
|
||||
</tr>
|
||||
<?php foreach ($subtasks as $subtask): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<?= $this->subtask->toggleStatus($subtask, $task['project_id']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (! empty($subtask['username'])): ?>
|
||||
<?= $this->text->e($subtask['name'] ?: $subtask['username']) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<?= t('Not assigned') ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -1,24 +1,34 @@
|
||||
<div class="tooltip-tasklinks">
|
||||
<dl>
|
||||
<div class="tooltip-large">
|
||||
<table>
|
||||
<?php foreach ($links as $label => $grouped_links): ?>
|
||||
<dt><strong><?= t($label) ?></strong></dt>
|
||||
<tr>
|
||||
<th colspan="4"><?= t($label) ?></th>
|
||||
</tr>
|
||||
<?php foreach ($grouped_links as $link): ?>
|
||||
<dd>
|
||||
<span class="progress"><?= $this->task->getProgress($link).'%' ?></span>
|
||||
<?= $this->url->link(
|
||||
$this->text->e('#'.$link['task_id'].' '.$link['title']),
|
||||
'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']),
|
||||
false,
|
||||
$link['is_active'] ? '' : 'task-link-closed'
|
||||
) ?>
|
||||
<?php if (! empty($link['task_assignee_username'])): ?>
|
||||
[<?= $this->text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>]
|
||||
<?php endif ?>
|
||||
<?php if ($task['project_id'] != $link['project_id']): ?>
|
||||
(<i><?= $link['project_name'] ?></i>)
|
||||
<?php endif ?>
|
||||
</dd>
|
||||
<tr>
|
||||
<td class="column-10">
|
||||
<?= $this->task->getProgress($link).'%' ?>
|
||||
</td>
|
||||
<td class="column-60">
|
||||
<?= $this->url->link(
|
||||
$this->text->e('#'.$link['task_id'].' '.$link['title']),
|
||||
'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']),
|
||||
false,
|
||||
$link['is_active'] ? '' : 'task-link-closed'
|
||||
) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (! empty($link['task_assignee_username'])): ?>
|
||||
<?= $this->text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>
|
||||
<?php else: ?>
|
||||
<?= t('Not assigned') ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $link['project_name'] ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
</dl>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user