summaryrefslogtreecommitdiff
path: root/app/Templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates')
-rw-r--r--app/Templates/board_index.php2
-rw-r--r--app/Templates/board_task.php6
-rw-r--r--app/Templates/file_show.php2
-rw-r--r--app/Templates/layout.php1
-rw-r--r--app/Templates/task_edit.php16
-rw-r--r--app/Templates/task_layout.php4
-rw-r--r--app/Templates/task_new.php4
7 files changed, 14 insertions, 21 deletions
diff --git a/app/Templates/board_index.php b/app/Templates/board_index.php
index 4b9b107c..c168d11a 100644
--- a/app/Templates/board_index.php
+++ b/app/Templates/board_index.php
@@ -29,5 +29,3 @@
<?php endif ?>
</section>
-
-<?= Helper\js('assets/js/board.js') ?>
diff --git a/app/Templates/board_task.php b/app/Templates/board_task.php
index 89f768e0..2c82b375 100644
--- a/app/Templates/board_task.php
+++ b/app/Templates/board_task.php
@@ -20,13 +20,13 @@
<?php else: ?>
- <a class="task-board-popover" href="?controller=task&amp;action=edit&amp;task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> -
+ <a class="task-edit-popover" href="?controller=task&amp;action=edit&amp;task_id=<?= $task['id'] ?>" title="<?= t('Edit this task') ?>">#<?= $task['id'] ?></a> -
<span class="task-board-user">
<?php if (! empty($task['owner_id'])): ?>
- <a class="task-board-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>"><?= t('Assigned to %s', $task['username']) ?></a>
+ <a class="assignee-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>"><?= t('Assigned to %s', $task['username']) ?></a>
<?php else: ?>
- <a class="task-board-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>" class="task-board-nobody"><?= t('Nobody assigned') ?></a>
+ <a class="assignee-popover" href="?controller=board&amp;action=assign&amp;task_id=<?= $task['id'] ?>" title="<?= t('Change assignee') ?>" class="task-board-nobody"><?= t('Nobody assigned') ?></a>
<?php endif ?>
</span>
diff --git a/app/Templates/file_show.php b/app/Templates/file_show.php
index 674861dd..b570de2d 100644
--- a/app/Templates/file_show.php
+++ b/app/Templates/file_show.php
@@ -8,7 +8,7 @@
<a href="?controller=file&amp;action=download&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>"><?= Helper\escape($file['name']) ?></a>
<span class="task-show-file-actions">
<?php if ($file['is_image']): ?>
- <a href="?controller=file&amp;action=open&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>" class="popover"><?= t('open') ?></a>,
+ <a href="?controller=file&amp;action=open&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>" class="file-popover"><?= t('open') ?></a>,
<?php endif ?>
<a href="?controller=file&amp;action=confirm&amp;file_id=<?= $file['id'] ?>&amp;task_id=<?= $task['id'] ?>"><?= t('remove') ?></a>
</span>
diff --git a/app/Templates/layout.php b/app/Templates/layout.php
index 22440bb7..2b66c685 100644
--- a/app/Templates/layout.php
+++ b/app/Templates/layout.php
@@ -10,6 +10,7 @@
<?= Helper\js('assets/js/jquery-ui-1.10.4.custom.min.js') ?>
<?= Helper\js('assets/js/jquery.ui.touch-punch.min.js') ?>
<?= Helper\js('assets/js/chosen.jquery.min.js') ?>
+ <?= Helper\js('assets/js/app.js') ?>
<?= Helper\css('assets/css/app.css') ?>
<?= Helper\css('assets/css/font-awesome.min.css') ?>
diff --git a/app/Templates/task_edit.php b/app/Templates/task_edit.php
index 07c3539b..0f1ec6f7 100644
--- a/app/Templates/task_edit.php
+++ b/app/Templates/task_edit.php
@@ -1,11 +1,11 @@
<section id="main">
<div class="page-header">
<h2><?= t('Edit a task') ?></h2>
-<?php if (!$ajax): ?>
+ <?php if (! $ajax): ?>
<ul>
<li><a href="?controller=board&amp;action=show&amp;project_id=<?= $task['project_id'] ?>"><?= t('Back to the board') ?></a></li>
</ul>
-<?php endif ?>
+ <?php endif ?>
</div>
<section>
<form method="post" action="?controller=task&amp;action=update&amp;task_id=<?= $task['id'] ?>&amp;ajax=<?= $ajax ?>" autocomplete="off">
@@ -50,14 +50,12 @@
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
<?= t('or') ?>
-<?php if ($ajax): ?>
- <a href="?controller=board&amp;action=show&amp;project_id=<?= $task['project_id'] ?>"><?= t('cancel') ?></a>
-<?php else: ?>
- <a href="?controller=task&amp;action=show&amp;task_id=<?= $task['id'] ?>"><?= t('cancel') ?></a>
-<?php endif ?>
+ <?php if ($ajax): ?>
+ <a href="?controller=board&amp;action=show&amp;project_id=<?= $task['project_id'] ?>"><?= t('cancel') ?></a>
+ <?php else: ?>
+ <a href="?controller=task&amp;action=show&amp;task_id=<?= $task['id'] ?>"><?= t('cancel') ?></a>
+ <?php endif ?>
</div>
</form>
</section>
</section>
-
-<?= Helper\js('assets/js/task.js'); ?>
diff --git a/app/Templates/task_layout.php b/app/Templates/task_layout.php
index cc711b78..9a6bbd00 100644
--- a/app/Templates/task_layout.php
+++ b/app/Templates/task_layout.php
@@ -13,6 +13,4 @@
<?= $task_content_for_layout ?>
</div>
</section>
-</section>
-
-<?= Helper\js('assets/js/task.js') ?>
+</section> \ No newline at end of file
diff --git a/app/Templates/task_new.php b/app/Templates/task_new.php
index 392330ae..5e4e3ee6 100644
--- a/app/Templates/task_new.php
+++ b/app/Templates/task_new.php
@@ -49,6 +49,4 @@
</div>
</form>
</section>
-</section>
-
-<?= Helper\js('assets/js/task.js'); ?>
+</section> \ No newline at end of file