summaryrefslogtreecommitdiff
path: root/app/Template/calendar
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-03-11 19:36:48 -0500
committerFrederic Guillot <fred@kanboard.net>2017-03-11 19:36:48 -0500
commit8f6b3295e89af4c877f5522b9941fafd51b795c7 (patch)
treed1f29f798ef1d0d10e2b21afb082398957d290c5 /app/Template/calendar
parentcfd3000d833d3a99df0b4248e3b6160e9be4f22a (diff)
Move dashboard menu for calendar and activity stream
Diffstat (limited to 'app/Template/calendar')
-rw-r--r--app/Template/calendar/project.php6
-rw-r--r--app/Template/calendar/show.php9
-rw-r--r--app/Template/calendar/user.php4
3 files changed, 10 insertions, 9 deletions
diff --git a/app/Template/calendar/project.php b/app/Template/calendar/project.php
new file mode 100644
index 00000000..769e019b
--- /dev/null
+++ b/app/Template/calendar/project.php
@@ -0,0 +1,6 @@
+<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
+
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'projectEvents', array('project_id' => $project['id'])),
+ $this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
+) ?>
diff --git a/app/Template/calendar/show.php b/app/Template/calendar/show.php
deleted file mode 100644
index 009fc07e..00000000
--- a/app/Template/calendar/show.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<section id="main">
- <?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
-
- <?= $this->calendar->render(
- $this->url->href('CalendarController', 'project', array('project_id' => $project['id'])),
- $this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
- ) ?>
-
-</section>
diff --git a/app/Template/calendar/user.php b/app/Template/calendar/user.php
new file mode 100644
index 00000000..c68bd32d
--- /dev/null
+++ b/app/Template/calendar/user.php
@@ -0,0 +1,4 @@
+<?= $this->calendar->render(
+ $this->url->href('CalendarController', 'userEvents', array('user_id' => $user['id'])),
+ $this->url->href('CalendarController', 'save')
+) ?>