summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-11-15 16:50:50 -0500
committerFrederic Guillot <fred@kanboard.net>2015-11-15 16:50:50 -0500
commit764d399ca4e72f5b20624cb6c38bc36670fa5346 (patch)
tree6e7ce796f08ac985a22bd72bff763cdb40f9f1cf /app
parent4358708f1b6c4e0463597da857b36c7415ae406f (diff)
parent1739c4a679829732e91896d49d97665b7ddc77a6 (diff)
Merge pull-request #1392
Diffstat (limited to 'app')
-rw-r--r--app/Template/subtask/show.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Template/subtask/show.php b/app/Template/subtask/show.php
index 1f0f9bba..aa2a7256 100644
--- a/app/Template/subtask/show.php
+++ b/app/Template/subtask/show.php
@@ -1,5 +1,3 @@
-<?php if (! empty($subtasks)): ?>
-
<?php $first_position = $subtasks[0]['position']; ?>
<?php $last_position = $subtasks[count($subtasks) - 1]['position']; ?>
@@ -9,6 +7,7 @@
<h2><?= t('Sub-Tasks') ?></h2>
</div>
+ <?php if (! empty($subtasks)): ?>
<table class="subtasks-table">
<tr>
<th class="column-40"><?= t('Title') ?></th>
@@ -86,6 +85,7 @@
</tr>
<?php endforeach ?>
</table>
+ <?php endif ?>
<?php if (! isset($not_editable)): ?>
<form method="post" action="<?= $this->url->href('subtask', 'save', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>" autocomplete="off">
@@ -99,4 +99,3 @@
<?php endif ?>
</div>
-<?php endif ?>