mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-16 14:48:41 +00:00
hide unnecessary info
This commit is contained in:
parent
32b5762a3a
commit
48605f015f
|
|
@ -116,7 +116,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>-->
|
<!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<?php $c = 0;
|
<?php $c = 0; $previous = null;
|
||||||
foreach ($elements as $key => $element) : $c++;
|
foreach ($elements as $key => $element) : $c++;
|
||||||
if ($element->getDescription() !== '') :
|
if ($element->getDescription() !== '') :
|
||||||
?>
|
?>
|
||||||
|
|
@ -154,9 +154,14 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|| $c != $cElements
|
|| $c != $cElements
|
||||||
) : ?>
|
) : ?>
|
||||||
<div class="vC wf-100 nobreak">
|
<div class="vC wf-100 nobreak">
|
||||||
<?php if ($element->getPriority() === TaskPriority::NONE) : ?>
|
<?php
|
||||||
|
if ($element->getPriority() === TaskPriority::NONE
|
||||||
|
&& ($previous !== null
|
||||||
|
&& $previous->getDue()->format('Y/m/d H:i') !== $element->getDue()->format('Y/m/d H:i')
|
||||||
|
)
|
||||||
|
) : ?>
|
||||||
<?= $this->getHtml('Due') ?>: <?= $this->printHtml($element->getDue()->format('Y/m/d H:i')); ?>
|
<?= $this->getHtml('Due') ?>: <?= $this->printHtml($element->getDue()->format('Y/m/d H:i')); ?>
|
||||||
<?php else : ?>
|
<?php elseif ($previous !== null && $previous->getPriority() !== $element->getPriority()) : ?>
|
||||||
<?= $this->getHtml('Priority') ?>: <?= $this->getHtml('P' . $element->getPriority()) ?>
|
<?= $this->getHtml('Priority') ?>: <?= $this->getHtml('P' . $element->getPriority()) ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -185,7 +190,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php endif; ?>
|
<?php endif; $previous = $element; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user